cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r558096 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/FaultOutInterceptor.java
Date Fri, 20 Jul 2007 19:16:56 GMT
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());
 



Mime
View raw message