diff options
| author | bugfixin <steve@bugfix.in> | 2019-04-25 04:36:28 +0000 |
|---|---|---|
| committer | bugfixin <steve@bugfix.in> | 2019-04-25 04:36:28 +0000 |
| commit | 844ea9d77ed24bb5b3bc5ec5b23df8a045933759 (patch) | |
| tree | bd9baa73d763ea13213c4dcb3489b732d0565ebd /Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs | |
| parent | 28c2ac528d46ba97b920d37300fa814bd6f4a51a (diff) | |
Don't coalesce empty strings to null in StringMapTypeDeserializer
Diffstat (limited to 'Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs')
| -rw-r--r-- | Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs b/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs index f835aa1b5..6a522fbef 100644 --- a/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs +++ b/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs @@ -71,7 +71,7 @@ namespace Emby.Server.Implementations.Services string propertyName = pair.Key; string propertyTextValue = pair.Value; - if (string.IsNullOrEmpty(propertyTextValue) + if (propertyTextValue == null || !propertySetterMap.TryGetValue(propertyName, out propertySerializerEntry) || propertySerializerEntry.PropertySetFn == null) { |
