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=14195>. 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=14195 NPE from dispatch() when no errCode [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From [EMAIL PROTECTED] 2002-11-04 20:18 ------- Actually, code was already checking for null errCode. Adopted suggestion to get the exception message when errCode is null in a slightly different way than suggested, as follows: --- ErrorDispatcher.java 7 Oct 2002 19:37:21 -0000 1.5 +++ ErrorDispatcher.java 4 Nov 2002 20:13:55 -0000 @@ -415,9 +415,11 @@ boolean hasLocation = false; // Localize - if (errCode != null) { errMsg = getString(errCode, args); + } else if (e != null) { + // give a hint about what's wrong + errMsg = e.getMessage(); } // Get error location -- To unsubscribe, e-mail: <mailto:tomcat-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-dev-help@;jakarta.apache.org>