You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Bielby, Randy J" <RB...@amfam.com> on 2002/06/03 21:58:27 UTC

NullPointerException in Validator v1.0 GenericValidator.isDate

I am using the Validator pre Struts 1.1.  I am getting a null pointer when validating a date via the GenericValidator.isDate(String, Locale).  It looks like the formatter that is used to parse the string value is never intialized.  The variable formatter is there but is never initialized via the getDateInstance.

Bug, bad version, wrong usage, or some other bone head thing I might have done???

BTW, it works fine once I change the code to intialized the formatter variable.

Randy Bielby 
G&R Madison Wisconsin

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>