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

Markup NO_MARKUP can not call toString

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.5-M3
    • 1.5-RC1
    • wicket
    • None
    • all

    Description

      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.

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            emberson Richard Emberson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: