- changed status to resolved
Regression: JSONObjectUtils.parse((String)null) throwed ParseException until 9.23, after switch to Gson throws NPE
Issue #566
resolved
Test against 9.23 (with JSON Smart):
public void testParseNullString() {
try {
JSONObjectUtils.parse(null);
fail();
} catch (ParseException e) {
assertEquals("Unexpected exception: Cannot invoke \"String.length()\" because \"in\" is null", e.getMessage());
}
}
See related issue #557
Comments (1)
-
reporter - Log in to comment
Fixed in 04bd9c1ee1c06d2af7d2ae0f89dc538ef0153c57