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


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.

Reply via email to