cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r545844 - /incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
Date Sun, 10 Jun 2007 04:57:34 GMT
Author: jliu
Date: Sat Jun  9 21:57:34 2007
New Revision: 545844

URL: http://svn.apache.org/viewvc?view=rev&rev=545844
Log:
Fixed NPE in mtosi_1.1 sample

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

Modified: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java?view=diff&rev=545844&r1=545843&r2=545844
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
(original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
Sat Jun  9 21:57:34 2007
@@ -384,11 +384,14 @@
             
             if (def != null && schemas != null) {
                 javax.wsdl.Message msg = def.getMessage(header.getMessage());
+                if (msg != null) {
+                    MessageInfo minfo = new MessageInfo(null, msg.getQName());
+                    buildMessage(minfo, msg, schemas);
 
-                MessageInfo minfo = new MessageInfo(null, msg.getQName());
-                buildMessage(minfo, msg, schemas);
-                
-                serviceInfo.addMessage(minfo);
+                    serviceInfo.addMessage(minfo);
+                } else {
+                    //TODO: The header message is not defined in this wsdl, what to do
+                }
             }
         }
     }



Mime
View raw message