Markup NO_MARKUP can not call toString
--------------------------------------
Key: WICKET-3324
URL: https://issues.apache.org/jira/browse/WICKET-3324
Project: Wicket
Issue Type: Improvement
Components: wicket
Affects Versions: 1.5-M3
Environment: all
Reporter: Richard Emberson
Priority: Trivial
Putting debugging statements I made the mistake of trying to print out a Markup
object. Turns out, it the MarkupCache can not find an associated Markup
object uses the Markup.NO_MARKUP singleton. This has neither the
markupResourceStream instance variable set or the markupElements set and,
thus, the Markup.toString method gives one a java.lang.NullPointerException.
The check might be to test for null prior to accessing them in the toString
method.
Just a thought.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.