aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs')
-rw-r--r--Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
index 08eea0308..214a2f4e6 100644
--- a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
+++ b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
@@ -248,9 +248,7 @@ public class MigrateLibraryDb : IMigrationRoutine
{
}
- if (reader.TryGetInt32(4, out var sortOrder))
- {
- }
+ int? sortOrder = reader.IsDBNull(4) ? null : reader.GetInt32(4);
personCache.Items.Add(new PeopleBaseItemMap()
{