johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JOHNZON-101) JsonObject#getJson* must not throw NullPointerException
Date Fri, 07 Jul 2017 20:51:00 GMT

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

Mark Struberg commented on JOHNZON-101:
---------------------------------------

Oki no problem ;) Removed those test messages. 

To sum up the current status: the fix already got resolved by Reinhard and committed before
the 1.0.x branch was created. 
So it is already delivered with Johnzon-1.1.0 upwards (JavaEE 8 version) and will be part
of a future Johnzon-1.0.1 release (JavaEE 7 level).


> 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
>             Fix For: 1.1.0, 1.0.1
>
>
> 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.4.14#64029)

Mime
View raw message