Thorsten Meinl created JOHNZON-334:
--------------------------------------

             Summary: JsonObject.getJsonObject throws NullPointerException
                 Key: JOHNZON-334
                 URL: https://issues.apache.org/jira/browse/JOHNZON-334
             Project: Johnzon
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.9.5
            Reporter: Thorsten Meinl


The API of 
[JsonObject.getJsonObject|https://docs.oracle.com/javaee/7/api/javax/json/JsonObject.html#getJsonObject-java.lang.String-]
 states that {{null}} must be returned is there is no mapping of the name. 
However, instead a NullPointerException is thrown which is a clear violation of 
the API contract. Probably other methods that return a {{JsonValue}} are 
affected, too.



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

Reply via email to