You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by br...@apache.org on 2004/08/24 17:01:33 UTC
svn commit: rev 36813 - cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/notification
Author: bruno
Date: Tue Aug 24 08:01:32 2004
New Revision: 36813
Modified:
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/notification/DefaultNotifyingBuilder.java
Log:
sync from trunk
The previous version of this file changed the implementation of
getRootCause to use common-lang, but didn't take into account that the
commons-lang method can return null.
Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/notification/DefaultNotifyingBuilder.java
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/notification/DefaultNotifyingBuilder.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/notification/DefaultNotifyingBuilder.java Tue Aug 24 08:01:32 2004
@@ -173,6 +173,7 @@
* Get root cause Throwable.
*/
public static Throwable getRootCause (Throwable t) {
- return ExceptionUtils.getRootCause(t);
+ Throwable rootCause = ExceptionUtils.getRootCause(t);
+ return rootCause != null ? rootCause : t;
}
}