Skip to content

Commit

Permalink
Deserializing Json null value makes TLC (silently) throw
Browse files Browse the repository at this point in the history
NullPointerExceptions, potentially causing massive slow down.

Fixes Github issue #868
tlaplus/tlaplus#868

[Bug]

Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
  • Loading branch information
lemmy committed Feb 1, 2024
1 parent fa56512 commit cb71fcb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/tlc2/overrides/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,6 @@ else if (primitive.isString()) {
return new StringValue(primitive.getAsString());
}
}
else if (node.isJsonNull()) {
return null;
}
throw new IOException("Cannot convert value: unsupported JSON value " + node.toString());
}

Expand Down

0 comments on commit cb71fcb

Please sign in to comment.