cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r659126 - /cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
Date Thu, 22 May 2008 14:49:05 GMT
Author: dkulp
Date: Thu May 22 07:49:03 2008
New Revision: 659126

URL: http://svn.apache.org/viewvc?rev=659126&view=rev
Log:
[CXF-1603] Add another NPE guard, fix from Benjamin Coiffe applied

Modified:
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java?rev=659126&r1=659125&r2=659126&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
(original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
Thu May 22 07:49:03 2008
@@ -632,7 +632,7 @@
                             bmsg.getMessageParts().remove(mpi);
                         } else if (SOAPBindingUtil.isSOAPBody(content)) {
                             SoapBody sb = SOAPBindingUtil.getSoapBody(content);
-                            if (sb.getParts().size() == 1) {
+                            if (sb.getParts() != null && sb.getParts().size() ==
1) {
                                 partName = (String) sb.getParts().get(0);
                             }
 



Mime
View raw message