You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/02/03 20:32:51 UTC

DO NOT REPLY [Bug 16732] New: - Null Pointer Re depends

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=16732>.
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=16732

Null Pointer Re depends

           Summary: Null Pointer Re depends
           Product: Commons
           Version: 1.6 Final
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Validator
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: mlconnor@yahoo.com


When you are using Validator in Struts and you leave out the depends attribute
on a field, you get a null pointer exception on line 502 of Validator.  There is
no way to tell which field is causing this.  It would be nice if we checked for
a null there and threw an exception providing some info about the field that was
causing the problem.

I'm not sure if this should be more of a Struts issue or a Validator issue but
I'm sure it's costing people a lot of time.  I just assumed that the field was
not dependent on any validation routines so I just removed the depends attribute.

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