Use reader.GetString instead of indexing

This commit is contained in:
Claus Vium 2019-08-18 17:32:41 +02:00
parent e7c05dcfaf
commit f48eaccc51

View File

@ -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)
{