Skip to content

Commit da4fe44

Browse files
EnumValue fix
1 parent 6c3b8f5 commit da4fe44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mx.NET.SDK.Core/Domain/Values/EnumValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public override T ToObject<T>()
2828

2929
public override string ToJson()
3030
{
31-
return JsonUnqtWrapper.Serialize((Name, Fields.Select(f => f.Value.ToJson())));
31+
return JsonUnqtWrapper.Serialize((Name, Fields?.Select(f => f.Value.ToJson())));
3232
}
3333
}
3434
}

0 commit comments

Comments
 (0)