You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by as...@apache.org on 2013/02/18 19:40:42 UTC
svn commit: r1447423 -
/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ToolException.java
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: ");
}
}