Skip to content

The Free Software Media System - Server Backend & API

Use reader.GetString instead of indexing

Claus Viumf48eaccc5105
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
index a29ef769d3..3ca0728fe3 100644
--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
@@ -1300,7 +1300,7 @@ namespace Emby.Server.Implementations.Data
{
try
{
- item = _jsonSerializer.DeserializeFromString(reader[1].ToString(), type) as BaseItem;
+ item = _jsonSerializer.DeserializeFromString(reader.GetString(1), type) as BaseItem;
}
catch (SerializationException ex)
{