cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r530638 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java
Date Fri, 20 Apr 2007 04:46:26 GMT
Author: ffang
Date: Thu Apr 19 21:46:24 2007
New Revision: 530638

URL: http://svn.apache.org/viewvc?view=rev&rev=530638
Log:
[CXF-549] get hello_world_xml_bare sample work
 

Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java?view=diff&rev=530638&r1=530637&r2=530638
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java
Thu Apr 19 21:46:24 2007
@@ -163,7 +163,13 @@
                 Object o = null;
 
                 MessagePartInfo p;
-                if (msgInfo != null && msgInfo.getMessageParts() != null) {
+                if (!client && msgInfo != null && msgInfo.getMessageParts()
!= null 
+                    && msgInfo.getMessageParts().size() == 0) {
+                    //no input messagePartInfo
+                    return;
+                }
+                if (msgInfo != null && msgInfo.getMessageParts() != null 
+                    && msgInfo.getMessageParts().size() > 0) {
                     assert msgInfo.getMessageParts().size() > paramNum;
                     p = msgInfo.getMessageParts().get(paramNum);
                 } else {



Mime
View raw message