You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/03/09 19:14:24 UTC

DO NOT REPLY [Bug 27545] New: - minor enhancement to pre-empt an NPE

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27545>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27545

minor enhancement to pre-empt an NPE 

           Summary: minor enhancement to pre-empt an NPE
           Product: Struts
           Version: 0.5 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: adam.hardy@cyberspaceroad.com


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

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org