We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 064f404 commit 3c2a5d1Copy full SHA for 3c2a5d1
src/JsonLD/Util/JavaCompat.cs
@@ -67,7 +67,7 @@ public static bool SafeCompare<T>(this JToken token, T val)
67
{
68
try
69
70
- return token.Value<T>().Equals(val);
+ return token == null ? val == null : token.Value<T>().Equals(val);
71
}
72
catch
73
0 commit comments