Skip to content

Commit cb71fcb

Browse files
committed
Deserializing Json null value makes TLC (silently) throw
NullPointerExceptions, potentially causing massive slow down. Fixes Github issue #868 tlaplus/tlaplus#868 [Bug] Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
1 parent fa56512 commit cb71fcb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

modules/tlc2/overrides/Json.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,6 @@ else if (primitive.isString()) {
406406
return new StringValue(primitive.getAsString());
407407
}
408408
}
409-
else if (node.isJsonNull()) {
410-
return null;
411-
}
412409
throw new IOException("Cannot convert value: unsupported JSON value " + node.toString());
413410
}
414411

0 commit comments

Comments
 (0)