Skip to content

Commit aa795f0

Browse files
author
Chris Santero
committed
make SetValue work with JToken null
1 parent adea1cb commit aa795f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JSONAPI/Core/EnumAttributeValueConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public JToken GetValue(object resource)
3737

3838
public void SetValue(object resource, JToken value)
3939
{
40-
if (value == null)
40+
if (value == null || value.Type == JTokenType.Null)
4141
{
4242
if (_isNullable)
4343
_property.SetValue(resource, null);

0 commit comments

Comments
 (0)