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

NPE in ListMultipleChoice.updateModel()

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment