You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Romain Manni-Bucau (Jira)" <ji...@apache.org> on 2021/02/03 15:36:00 UTC

[jira] [Commented] (JOHNZON-334) JsonObject.getJsonObject throws NullPointerException

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

Romain Manni-Bucau commented on JOHNZON-334:
--------------------------------------------

Hi [~sithmein], think it is fixed in recent versions, can you give a try on last release please?

> 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)