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

NPE in FencedFeedbackPanel#onRemove

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.4.0
    • 6.5.0
    • wicket
    • None

    Description

      There is a potential NPE in FencedFeedbackPanel.onRemove(FencedFeedbackPanel.java:155).

      If a FencedFeedbackPanel instance is used two times ( i.e. wizard is replacing components on navigation) the MetaDataKey "FENCE_KEY" could be null. This causes a NPE in any further call of "onRemove".

      Example Stacktrace:

      Caused by: java.lang.NullPointerException
      at org.apache.wicket.feedback.FencedFeedbackPanel.onRemove(FencedFeedbackPanel.java:155)
      at org.apache.wicket.Component.internalOnRemove(Component.java:1102)
      at org.apache.wicket.MarkupContainer.removeChildren(MarkupContainer.java:1589)
      at org.apache.wicket.Component.internalOnRemove(Component.java:1110)
      at org.apache.wicket.MarkupContainer.removeChildren(MarkupContainer.java:1589)
      at org.apache.wicket.Component.internalOnRemove(Component.java:1110)
      at org.apache.wicket.MarkupContainer.removeChildren(MarkupContainer.java:1589)
      at org.apache.wicket.Component.internalOnRemove(Component.java:1110)
      at org.apache.wicket.MarkupContainer.removeChildren(MarkupContainer.java:1589)
      at org.apache.wicket.Component.internalOnRemove(Component.java:1110)
      at org.apache.wicket.MarkupContainer.removedComponent(MarkupContainer.java:1341)
      at org.apache.wicket.MarkupContainer.replace(MarkupContainer.java:739)
      at org.apache.wicket.extensions.wizard.Wizard.onActiveStepChanged(Wizard.java:233)

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              mfrankerl Michael Frankerl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: