aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-11-11 00:27:30 +0000
committerJPVenson <github@jpb.email>2024-11-11 00:27:30 +0000
commit2d4f7f725fb3d93dfa21f0ce4c48d292575d6fb1 (patch)
treeeb3761115192b510444bb94238617d30b99a0fee /Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
parent911139e2d57d22c4ddc0fb0a50997d6d235c3a3c (diff)
Fixed TopParent not beeing migrated
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs')
-rw-r--r--Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs b/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
index aef02ce6b..9646f13e9 100644
--- a/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
+++ b/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
@@ -144,9 +144,15 @@ namespace Emby.Server.Implementations.EntryPoints
.Select(i =>
{
var dto = _userDataManager.GetUserDataDto(i, user);
+ if (dto is null)
+ {
+ return null!;
+ }
+
dto.ItemId = i.Id;
return dto;
})
+ .Where(e => e is not null)
.ToArray()
};
}