You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2012/06/11 11:50:04 UTC

svn commit: r1348777 - in /tomcat/tc7.0.x/trunk: ./ java/org/apache/catalina/valves/ErrorReportValve.java

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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org