[ https://issues.apache.org/jira/browse/JOHNZON-371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau resolved JOHNZON-371. ---------------------------------------- Resolution: Fixed > NullPointerException thrown when null value present in primitive arrays > ----------------------------------------------------------------------- > > Key: JOHNZON-371 > URL: https://issues.apache.org/jira/browse/JOHNZON-371 > Project: Johnzon > Issue Type: Bug > Reporter: David Blevins > Priority: Major > 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.10#820010)