cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asold...@apache.org
Subject svn commit: r1447423 - /cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ToolException.java
Date Mon, 18 Feb 2013 18:40:42 GMT
Author: asoldano
Date: Mon Feb 18 18:40:42 2013
New Revision: 1447423

URL: http://svn.apache.org/r1447423
Log:
[CXF-4833] Adding missing check on hasSuppressed in ToolException

Modified:
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ToolException.java

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ToolException.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ToolException.java?rev=1447423&r1=1447422&r2=1447423&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ToolException.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ToolException.java Mon
Feb 18 18:40:42 2013
@@ -117,7 +117,7 @@ public class ToolException extends Runti
 
         // Print cause, if any
         Throwable ourCause = getCause();
-        if (ourCause != null &&  ourCause != suppressed.get(0)) {
+        if (ourCause != null && (!hasSuppressed || ourCause != suppressed.get(0)))
{
             printThrowable(ourCause, ps, pfx + "/t", "Caused by: ");
         }
     }    



Mime
View raw message