You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by da...@apache.org on 2007/07/20 21:16:56 UTC

svn commit: r558096 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/FaultOutInterceptor.java

Author: dandiep
Date: Fri Jul 20 12:16:54 2007
New Revision: 558096

URL: http://svn.apache.org/viewvc?view=rev&rev=558096
Log:
Work well with Faults that aren't triggered by another exception.

Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/FaultOutInterceptor.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/FaultOutInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/FaultOutInterceptor.java?view=diff&rev=558096&r1=558095&r2=558096
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/FaultOutInterceptor.java (original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/FaultOutInterceptor.java Fri Jul 20 12:16:54 2007
@@ -52,6 +52,10 @@
         Fault f = (Fault)message.getContent(Exception.class);
 
         Throwable cause = f.getCause();
+        if (cause == null) {
+            return;
+        }
+        
         BindingOperationInfo bop = message.getExchange().get(BindingOperationInfo.class);
         FaultInfo fi = getFaultForClass(bop, cause.getClass());