geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r527745 - /geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java
Date Thu, 12 Apr 2007 01:38:35 GMT
Author: dims
Date: Wed Apr 11 18:38:35 2007
New Revision: 527745

URL: http://svn.apache.org/viewvc?view=rev&rev=527745
Log:
prevent NPE

Modified:
    geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java?view=diff&rev=527745&r1=527744&r2=527745
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java
(original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java
Wed Apr 11 18:38:35 2007
@@ -472,7 +472,10 @@
             if (portInfo.getWsdlFile() != null && !portInfo.getWsdlFile().equals(""))
{ //wsdl file has been provided
                 Definition wsdlDefinition = new AxisServiceGenerator().getWSDLDefition(portInfo,
configurationBaseUrl, classLoader);
                 if(wsdlDefinition != null){
-                    String portName = portInfo.getWsdlPort().getLocalPart();
+                    String portName = null;
+                    if(portInfo.getWsdlPort() != null) {
+                        portName = portInfo.getWsdlPort().getLocalPart();
+                    }
                     QName qName = portInfo.getWsdlService();
                     if (qName == null) {
                         qName = new QName(service.getTargetNamespace(), service.getName());



Mime
View raw message