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

http://issues.apache.org/bugzilla/show_bug.cgi?id=27910

java.lang.NullPointerException at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:143)





------- Additional Comments From [EMAIL PROTECTED]  2004-03-25 05:17 -------
Joe, thanks for the info - how about helping those trying the same in the future
with:
ActionErrors errors = new ActionErrors();
if (getServlet() == null ){
  log.error("getServlet() == null: creating a form yourself " +
        "using a constructor is deprecated." +
        "use RequestUtils.createActionForm(FormBeanConfig,ActionServlet)\n" +
        "see also http://issues.apache.org/bugzilla/show_bug.cgi?id=27910";);
  errors.add(
        ActionErrors.GLOBAL_ERROR,
        new ActionError(
          "error.struts.validator.no.servlet",
          "getServlet() == null: creating a form " +
          "yourself using a constructor is deprecated." +
          "use RequestUtils.createActionForm(FormBeanConfig,ActionServlet)\n" +
          "see also http://issues.apache.org/bugzilla/show_bug.cgi?id=27910";));
  return errors;
}
? A null-pointer test shouldn't be expensive during run-time and I hope the
error text wont inflate the code fatally either?
Lukasz, luckily, the page wasn't causing it in my case.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to