struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10599] New: - GenericValidator.isDate NullPointerException
Date Tue, 09 Jul 2002 16:32:26 GMT
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=10599>.
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=10599

GenericValidator.isDate NullPointerException

           Summary: GenericValidator.isDate NullPointerException
           Product: Struts
           Version: 1.0.2 Final
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: rbielby@gr.com


The com.wintecinc.struts.validation.GenericValidator.isDate(String, Locale) 
throws a NullPointerExcpetion.  The local variable formatter of type DateFormat 
is never initialized.  Therefore this line of code throws a 
NullPointerException,  formatter.setLenient(false) since formatter was never 
intialized.  I created my own fix by intializing the formatter variable with 
the return value from the DateFormat.getInstance method call.  I have never 
submitted a fix let alone a bug report, if needed I can submit the fix that I 
have, just two lines of code.

Thanks 
Randy

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


Mime
View raw message