[
https://issues.apache.org/jira/browse/WICKET-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor Vaynberg resolved WICKET-1270.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.3.1
> NPE in ListMultipleChoice.updateModel()
> ---------------------------------------
>
> Key: WICKET-1270
> URL: https://issues.apache.org/jira/browse/WICKET-1270
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-final
> Reporter: Thomas Jaeckle
> Fix For: 1.3.1
>
> Attachments: WICKET-1270.patch
>
>
> I noticed a NullPointerException when I cleared a Form with a
> ListMultipleChoice to its original state.
> In updateModel() following statement causes a NPE when something was selected
> in the multiple select but in the original state nothing was selected:
> selectedValues.addAll((Collection)getConvertedInput());
> getConvertedInput() is null, so ArrayList.addAll() operates on the null value
> and throws the NPE.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.