cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r618767 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/FaultOutInterceptor.java
Date Tue, 05 Feb 2008 20:19:12 GMT
Author: dkulp
Date: Tue Feb  5 12:19:10 2008
New Revision: 618767

URL: http://svn.apache.org/viewvc?rev=618767&view=rev
Log:
Fix possible NPE in FaultOutInterceptor

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?rev=618767&r1=618766&r2=618767&view=diff
==============================================================================
--- 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
Tue Feb  5 12:19:10 2008
@@ -58,6 +58,9 @@
         }
         
         BindingOperationInfo bop = message.getExchange().get(BindingOperationInfo.class);
+        if (bop == null) {
+            return;
+        }
         FaultInfo fi = getFaultForClass(bop, cause.getClass());
 
         if (cause instanceof Exception && fi != null) {



Mime
View raw message