You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Matthew Broadhead (Jira)" <ji...@apache.org> on 2020/11/17 09:18:00 UTC

[jira] [Created] (JOHNZON-324) JsonObject.getString throws NPE

Matthew Broadhead created JOHNZON-324:
-----------------------------------------

             Summary: JsonObject.getString throws NPE
                 Key: JOHNZON-324
                 URL: https://issues.apache.org/jira/browse/JOHNZON-324
             Project: Johnzon
          Issue Type: Bug
          Components: JSON-B
    Affects Versions: 1.2.5
         Environment: The javadocs (see attached) say that getString (and possibly others) will return null when there is no attribute with that name.  However it seems to throw a NullPointerException if the attribute is not present.  
            Reporter: Matthew Broadhead
         Attachments: Screenshot from 2020-11-17 09-37-04.png

!Screenshot from 2020-11-17 09-37-04.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)