Regression: JSONObjectUtils.parse((String)null) throwed ParseException until 9.23, after switch to Gson throws NPE

Issue #566 resolved
Yavor Vasilev created an issue

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)

  1. Log in to comment