Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-371

NullPointerException thrown when null value present in primitive arrays

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.19
    • None
    • None

    Description

      In java 8 the user will simply get the message "null"

       

      In recent java versions, the user will see the much nicer NullPointerException

       

      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
      

      Either way we should likely handle it and tell the user there is a null value in their json boolean array.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: