Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2006

[taglib] minor enhancement to pre-empt an NPE

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.5
    • 1.3.0
    • Tag Libraries
    • None
    • Operating System: All
      Platform: All
    • 27545

    Description

      java.lang.NullPointerException
      at
      org.apache.struts.taglib.html.MessagesTag.doStartTag(MessagesTag.java:248)

      If you could put the following it would save an hour of debugging and
      head-scratching:

      if (report == null) throw new JSPException("cannot display null ActionMessage!");

      I think it comes from the Validator but I haven't got that far yet.

      Adam

      Attachments

        Activity

          People

            Unassigned Unassigned
            adam.hardy@cyberspaceroad.com Adam Hardy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: