Author: markt
Date: Mon Jun 11 09:50:03 2012
New Revision: 1348777
URL: http://svn.apache.org/viewvc?rev=1348777&view=rev
Log:
Fix logic
Modified:
tomcat/tc7.0.x/trunk/ (props changed)
tomcat/tc7.0.x/trunk/java/org/apache/catalina/valves/ErrorReportValve.java
Propchange: tomcat/tc7.0.x/trunk/
------------------------------------------------------------------------------
Merged /tomcat/trunk:r1348776
Modified:
tomcat/tc7.0.x/trunk/java/org/apache/catalina/valves/ErrorReportValve.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/valves/ErrorReportValve.java?rev=1348777&r1=1348776&r2=1348777&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/catalina/valves/ErrorReportValve.java
(original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/valves/ErrorReportValve.java
Mon Jun 11 09:50:03 2012
@@ -164,8 +164,10 @@ public class ErrorReportValve extends Va
}
String message = RequestUtil.filter(response.getMessage());
- if (message == null && throwable != null) {
- message = RequestUtil.filter(throwable.getMessage());
+ if (message == null) {
+ if (throwable != null) {
+ message = RequestUtil.filter(throwable.getMessage());
+ }
if (message == null) {
message = "";
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]