Преглед на файлове

Don't coalesce empty strings to null in StringMapTypeDeserializer

bugfixin преди 6 години
родител
ревизия
844ea9d77e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs

+ 1 - 1
Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs

@@ -71,7 +71,7 @@ namespace Emby.Server.Implementations.Services
                 string propertyName = pair.Key;
                 string propertyName = pair.Key;
                 string propertyTextValue = pair.Value;
                 string propertyTextValue = pair.Value;
 
 
-                if (string.IsNullOrEmpty(propertyTextValue)
+                if (propertyTextValue == null
                     || !propertySetterMap.TryGetValue(propertyName, out propertySerializerEntry)
                     || !propertySetterMap.TryGetValue(propertyName, out propertySerializerEntry)
                     || propertySerializerEntry.PropertySetFn == null)
                     || propertySerializerEntry.PropertySetFn == null)
                 {
                 {