johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Sandtner (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JOHNZON-101) JsonObject#getJson* must not throw NullPointerException
Date Tue, 13 Dec 2016 19:25:59 GMT
Reinhard Sandtner created JOHNZON-101:
-----------------------------------------

             Summary: JsonObject#getJson* must not throw NullPointerException
                 Key: JOHNZON-101
                 URL: https://issues.apache.org/jira/browse/JOHNZON-101
             Project: Johnzon
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.9.5, 1.0.0
            Reporter: Reinhard Sandtner
            Assignee: Reinhard Sandtner
            Priority: Critical


currently we throw a NPE in every case we do not find an entry for given name.

[Javadoc|http://docs.oracle.com/javaee/7/api/javax/json/JsonObject.html#getJsonArray-java.lang.String-]
says we must return {{null}} if the object contains no value for the name



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message