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

NPE in EnclosureResolver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.3
    • 1.4-RC1
    • wicket
    • None

    Description

      if you put a single wicket:container in a wicket:enclosure, it will NPE looking for a "child" attribute. you can work around by either changing the container to a div (in which case it will correctly default to the single child) or by adding a child="name" attribute to the enclosure to explicitly specify the single child.

      Caused by: java.lang.NullPointerException
      at org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:59)
      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1324)
      at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476)
      at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:639)
      at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:112)
      at org.apache.wicket.Component.renderComponent(Component.java:2478)
      ... 47 common frames omitted

      Attachments

        Activity

          People

            jdonnerstag Juegen Donnerstag
            jonl Jonathan Locke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: