You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ilia Naryzhny (JIRA)" <ji...@apache.org> on 2014/02/01 01:44:08 UTC

[jira] [Created] (WICKET-5497) NPE in JsonUtils

Ilia Naryzhny created WICKET-5497:
-------------------------------------

             Summary: NPE in JsonUtils
                 Key: WICKET-5497
                 URL: https://issues.apache.org/jira/browse/WICKET-5497
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 6.13.0
            Reporter: Ilia Naryzhny


Most part of org.apache.wicket.ajax.json.JsonUtils.asArray(Map<String, Object> map) is trying carefully avoid null value. But there is following line

else if (value.getClass().isArray())

which cause NPE in case of empty value for some key.


P.S. Will provide patch.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)