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

errDispatcher not set when called from Ant

           Summary: errDispatcher not set when called from Ant
           Product: Tomcat 4
           Version: 4.1.30
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In the Compiler class, the generateJava method can be called without a proper
errDispatcher having been set.  This happens, for example, when generating Java
from an ant script in order to precompile jsps. 

The result is that errors thrown by this process end up begin reported as null
pointer exceptions because the ErrorDispatcher itself is null.

I've added the following lines to the top of the method, and it seems to fix the
problem.

      if (errDispatcher == null) {
          this.errDispatcher = new ErrorDispatcher();
      }

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

Reply via email to