You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2014/02/02 11:20:08 UTC
[jira] [Updated] (WICKET-5497) NPE in JsonUtils when the value is
null
[ https://issues.apache.org/jira/browse/WICKET-5497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov updated WICKET-5497:
------------------------------------
Summary: NPE in JsonUtils when the value is null (was: NPE in JsonUtils)
> NPE in JsonUtils when the value is null
> ---------------------------------------
>
> 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
> Labels: json, wicket
>
> 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)