[ 
https://issues.apache.org/jira/browse/JOHNZON-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17278647#comment-17278647
 ] 

Thorsten Meinl commented on JOHNZON-334:
----------------------------------------

Indeed, you are right. The old version was pulled in by some other Maven 
dependency. At least since 1.2.8 it's working correctly.

> 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
>            Priority: Blocker
>
> 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