aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2026-01-09 18:40:59 +0100
committerGitHub <noreply@github.com>2026-01-09 18:40:59 +0100
commit185849b68a70acb4b5ed5fcff2aed0ee7951c51b (patch)
tree691964968f9f5acd7c8c9e8e22890ca0aea2d6df /Jellyfin.Server
parente62b6f833984e53abaa1c9cfb1facdc84725acc4 (diff)
parent0ff869dfcd4ab527dccc975c9be414d1c050a90d (diff)
Merge pull request #15956 from ZeusCraft10/fix/issue-15945-unknown-type-deserialization
fix: Handle unknown item types gracefully in DeserializeBaseItem
Diffstat (limited to 'Jellyfin.Server')
-rw-r--r--Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
index d221d1853..4b1e53a35 100644
--- a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
+++ b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
@@ -1247,8 +1247,11 @@ internal class MigrateLibraryDb : IDatabaseMigrationRoutine
}
var baseItem = BaseItemRepository.DeserializeBaseItem(entity, _logger, null, false);
- var dataKeys = baseItem.GetUserDataKeys();
- userDataKeys.AddRange(dataKeys);
+ if (baseItem is not null)
+ {
+ var dataKeys = baseItem.GetUserDataKeys();
+ userDataKeys.AddRange(dataKeys);
+ }
return (entity, userDataKeys.ToArray());
}