[ https://issues.apache.org/jira/browse/JOHNZON-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Markus Jung closed JOHNZON-334. ------------------------------- Resolution: Invalid > JsonObject.getJsonObject throws NullPointerException > ---------------------------------------------------- > > Key: JOHNZON-334 > URL: https://issues.apache.org/jira/browse/JOHNZON-334 > Project: Johnzon > Issue Type: Bug > Components: Core > 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.20.10#820010)