tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14195] - NPE from dispatch() when no errCode
Date Sun, 03 Nov 2002 01:20:57 GMT
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





------- Additional Comments From hans@gefionsoftware.com  2002-11-03 01:20 -------
Eh, turns out that there are case where the Exception is null as well. This
should be safe though:

  String errMsg = null;
  if (errCode != null) {
      errMsg = getString(errCode, args);
  }
  if (errMsg == null && e != null) {
      errMsg = e.getMessage();
  }

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message