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:22:08 UTC
[jira] [Resolved] (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 resolved WICKET-5497.
-------------------------------------
Resolution: Fixed
Fix Version/s: 7.0.0
6.14.0
Assignee: Martin Grigorov
> 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
> Assignee: Martin Grigorov
> Labels: json, wicket
> Fix For: 6.14.0, 7.0.0
>
>
> 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)