[ 
https://issues.apache.org/jira/browse/WICKET-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465864
 ] 

Igor Vaynberg commented on WICKET-223:
--------------------------------------

in 1.x branch the code looks like this

if (group.hasRawInput())
                {
                        final String[] input = group.getInputAsArray();

                        if (input != null)
                        { ....

what does it look like in your version?

> NPE in Check.onComponentTag
> ---------------------------
>
>                 Key: WICKET-223
>                 URL: https://issues.apache.org/jira/browse/WICKET-223
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.2.4
>            Reporter: Alex Burgel
>         Assigned To: Igor Vaynberg
>            Priority: Critical
>
> I've been getting NPEs in wicket.markup.html.form.Check line 132 since 
> upgrading to wicket 1.2.4
> it seems that it is possible for FormComponent.getInputAsArray() can return 
> null rather than an empty array.
> a fix would be to do a null check in Check or ensure that getInputAsArray() 
> never returns null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to