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 2003/06/23 03:49:29 UTC

DO NOT REPLY [Bug 21004] New: - multibox throws null pointer exception

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21004

multibox throws null pointer exception

           Summary: multibox throws null pointer exception
           Product: Struts
           Version: 1.1 RC1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: nma@fulfil-net.com.au


Scenerio:
JSP - have multibox tag
ActionForm - String[] myCheckBoxes
Action - String[] myStringArray = actionForm.getMyCheckBoxes()
 
there is no problem to get the element in the Array, but if you called .length 
(i.e myStringArray.length), it will throw NullPointerException

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