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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to