Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1270

NPE in ListMultipleChoice.updateModel()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0-final
    • 1.3.1
    • wicket
    • None

    Description

      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.

      Attachments

        1. WICKET-1270.patch
          0.6 kB
          Thomas Jaeckle

        Activity

          People

            Unassigned Unassigned
            maentele Thomas Jaeckle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: