David Blevins created JOHNZON-371:
-------------------------------------
Summary: NullPointerException thrown when null value present in
json boolean array
Key: JOHNZON-371
URL: https://issues.apache.org/jira/browse/JOHNZON-371
Project: Johnzon
Issue Type: Bug
Reporter: David Blevins
Fix For: 1.2.19
In java 8 the user will simply get the message "null"
In recent java versions, the user will see the much nicer NullPointerException
{noformat}
Cannot invoke "java.lang.Boolean.booleanValue()" because the return value of
"org.apache.johnzon.mapper.MappingParserImpl.toObject(Object,
javax.json.JsonValue, java.lang.reflect.Type,
org.apache.johnzon.mapper.Adapter,
org.apache.johnzon.mapper.internal.JsonPointerTracker, java.lang.reflect.Type)"
is null
{noformat}
Either way we should likely handle it and tell the user there is a null value
in their json boolean array.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)