aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2019-04-29 23:07:04 -0400
committerGitHub <noreply@github.com>2019-04-29 23:07:04 -0400
commit4e0be953686cc31ac4b4e6d5874e8d4bd241eb18 (patch)
tree4157f67ee760f76d816a5f7ecd7f9e459e625558 /Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs
parentf97f6b8061a4127d5a18c6a132e546ed424f88c7 (diff)
parent844ea9d77ed24bb5b3bc5ec5b23df8a045933759 (diff)
Merge pull request #1305 from bugfixin/passwordless-form-encoded
Fix passwordless authentication with non-json content-types
Diffstat (limited to 'Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs')
-rw-r--r--Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs2
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)
{