cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1329925 - in /cxf/branches/2.5.x-fixes/rt: bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap12FaultInInterceptor.java frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
Date Tue, 24 Apr 2012 18:42:24 GMT
Author: dkulp
Date: Tue Apr 24 18:42:23 2012
New Revision: 1329925

URL: http://svn.apache.org/viewvc?rev=1329925&view=rev
Log:
Merged revisions 1329905 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1329905 | dkulp | 2012-04-24 14:07:23 -0400 (Tue, 24 Apr 2012) | 2 lines

  [CXF-4265] Fix potential NPE when createing soap faults.

........

Modified:
    cxf/branches/2.5.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap12FaultInInterceptor.java
    cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java

Modified: cxf/branches/2.5.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap12FaultInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap12FaultInInterceptor.java?rev=1329925&r1=1329924&r2=1329925&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap12FaultInInterceptor.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap12FaultInInterceptor.java
Tue Apr 24 18:42:23 2012
@@ -125,7 +125,8 @@ public class Soap12FaultInInterceptor ex
                                         fault,
                                         XPathConstants.STRING);                       
         } catch (XMLStreamException e) {
-            throw new SoapFault("Could not parse message.", 
+            throw new SoapFault("Could not parse message.",
+                                e,
                                 message.getVersion().getSender());
         }
 

Modified: cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java?rev=1329925&r1=1329924&r2=1329925&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
Tue Apr 24 18:42:23 2012
@@ -216,7 +216,10 @@ public class JaxWsClientProxy extends or
             }
             soapFault.setFaultString(((SoapFault)ex).getReason());
             soapFault.setFaultCode(((SoapFault)ex).getFaultCode());
-            soapFault.setFaultActor(((SoapFault)ex).getRole());
+            String role = ((SoapFault)ex).getRole();
+            if (role != null) {
+                soapFault.setFaultActor(role);
+            }
             if (((SoapFault)ex).getSubCode() != null) {
                 soapFault.appendFaultSubcode(((SoapFault)ex).getSubCode());
             }



Mime
View raw message