NPE in EnclosureResolver
------------------------

                 Key: WICKET-1583
                 URL: https://issues.apache.org/jira/browse/WICKET-1583
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.3.3
            Reporter: Jonathan Locke



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



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to