[ https://issues.apache.org/jira/browse/WICKET-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Jaeckle updated WICKET-1270: ----------------------------------- Attachment: WICKET-1270.patch Simple patch which first checks if getConvertedInput() is null. > 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 > 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.