camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1199703 - /camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
Date Wed, 09 Nov 2011 11:52:04 GMT
Author: ningjiang
Date: Wed Nov  9 11:52:04 2011
New Revision: 1199703

URL: http://svn.apache.org/viewvc?rev=1199703&view=rev
Log:
 CAMEL-4649 Fixed the NPE issue of DefaultCxfBinding when the soap body is empty

Modified:
    camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java?rev=1199703&r1=1199702&r2=1199703&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
(original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
Wed Nov  9 11:52:04 2011
@@ -392,7 +392,7 @@ public class DefaultCxfBinding implement
         int i = 0;
         if (boi.getOutput() != null) {
             for (MessagePartInfo partInfo : boi.getOutput().getMessageParts()) {
-                if (elements.size() > i) {
+                if (elements != null && elements.size() > i) {
                     answer.put(partInfo, elements.get(i++));
                 }
             }



Mime
View raw message