Guillaume Smet created WICKET-5904:
--------------------------------------
Summary: NPE after editing a markup file in debug mode
Key: WICKET-5904
URL: https://issues.apache.org/jira/browse/WICKET-5904
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 7.0.0-M5
Reporter: Guillaume Smet
Hi,
I have a weird behavior with 7.0.0-SNAPSHOT: if I update the markup in Eclipse
debug mode (just add a class in a class attribute for instance, nothing fancy),
I get the following exception when I reload the page without removing the
?version parameter:
java.lang.IllegalArgumentException: Argument 'markup' may not be null.
at org.apache.wicket.util.lang.Args.notNull(Args.java:41)
at org.apache.wicket.markup.MarkupStream.<init>(MarkupStream.java:65)
at
org.apache.wicket.markup.html.internal.Enclosure.getChild(Enclosure.java:133)
at
org.apache.wicket.markup.html.internal.Enclosure.onConfigure(Enclosure.java:148)
at org.apache.wicket.Component.configure(Component.java:1055)
at org.apache.wicket.Component.internalBeforeRender(Component.java:940)
at org.apache.wicket.Component.beforeRender(Component.java:1017)
at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1712)
at org.apache.wicket.Component.onBeforeRender(Component.java:3876)
at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
at org.apache.wicket.Component.beforeRender(Component.java:1017)
at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1712)
at org.apache.wicket.Component.onBeforeRender(Component.java:3876)
at org.apache.wicket.Page.onBeforeRender(Page.java:801)
at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
at org.apache.wicket.Component.beforeRender(Component.java:1017)
at
org.apache.wicket.Component.internalPrepareForRender(Component.java:2214)
at org.apache.wicket.Page.internalPrepareForRender(Page.java:242)
I can reproduce it every time.
If the issue isn't obvious, I can try to extract a quick start.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)