tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r529201 - /incubator/tuscany/java/sca/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/binding/axis2/util/WebServicePortMetaData.java
Date Mon, 16 Apr 2007 10:54:29 GMT
Author: antelder
Date: Mon Apr 16 03:54:27 2007
New Revision: 529201

URL: http://svn.apache.org/viewvc?view=rev&rev=529201
Log:
Axis2 binding, avoid NPE when port is null

Modified:
    incubator/tuscany/java/sca/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/binding/axis2/util/WebServicePortMetaData.java

Modified: incubator/tuscany/java/sca/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/binding/axis2/util/WebServicePortMetaData.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/binding/axis2/util/WebServicePortMetaData.java?view=diff&rev=529201&r1=529200&r2=529201
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/binding/axis2/util/WebServicePortMetaData.java
(original)
+++ incubator/tuscany/java/sca/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/binding/axis2/util/WebServicePortMetaData.java
Mon Apr 16 03:54:27 2007
@@ -60,7 +60,9 @@
 
         // Lookup the named port
         this.wsdlPort = wsdlPort;
-        wsdlPortName = new QName(wsdlDefinition.getTargetNamespace(), wsdlPort.getName());
+        if (wsdlPort != null) {
+            wsdlPortName = new QName(wsdlDefinition.getTargetNamespace(), wsdlPort.getName());
+        }
         Collection services = wsdlDefinition.getServices().values();
         for (Object serviceObj : services) {
             Service service = (Service) serviceObj;



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message