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

WizardStep$FormValidatorWrapper.isActiveStep(WizardStep.java) causes NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2
    • wicket-extensions
    • None

    Description

      Using the Wizard with a nested WizardModel (see RecursiveWizardModel implementation at the attached quickstart application) causes a NullPointerException. I was able to run the same test application with wicket 1.4.18 without any problems.

      Caused by: java.lang.NullPointerException
      at org.apache.wicket.extensions.wizard.WizardStep$FormValidatorWrapper.isActiveStep(WizardStep.java:145)
      at org.apache.wicket.extensions.wizard.WizardStep$FormValidatorWrapper.getDependentFormComponents(WizardStep.java:109)
      at org.apache.wicket.markup.html.form.validation.FormValidatorAdapter.getDependentFormComponents(FormValidatorAdapter.java:47)
      at org.apache.wicket.markup.html.form.Form.validateFormValidator(Form.java:1782)
      at org.apache.wicket.markup.html.form.Form.validateFormValidators(Form.java:1828)
      at org.apache.wicket.markup.html.form.Form.validate(Form.java:1706)
      at org.apache.wicket.markup.html.form.Form.process(Form.java:773)
      at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:728)
      at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:670)

      Attachments

        1. wizardtest.zip
          26 kB
          Dirk Forchel
        2. WICKET-4121.patch
          1 kB
          Sven Meier

        Activity

          People

            svenmeier Sven Meier
            forchel Dirk Forchel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: