You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Thorsten Meinl (Jira)" <ji...@apache.org> on 2021/02/03 14:39:00 UTC
[jira] [Created] (JOHNZON-334) JsonObject.getJsonObject throws
NullPointerException
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)