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

NPE with nested property models

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.14
    • 1.4.15, 1.5-RC1
    • wicket
    • None

    Description

      After updated from 1.4.8 to 1.4.14 I got this bug.

      The problem is with nested property models where the "top" model has a null model object that is bound to a TextField. You get a NPE when the page is rendered. There is a quick workaround by overriding getOjbectClass() on the property model.

      I provide a running example of the problem.

      Attachments

        1. wicket-property-model-bug.zip
          5 kB
          Tobias Bergman

        Activity

          People

            pedrosans Pedro Santos
            tbergman Tobias Bergman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: