axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r613916 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java
Date Mon, 21 Jan 2008 15:26:53 GMT
Author: dims
Date: Mon Jan 21 07:26:53 2008
New Revision: 613916

URL: http://svn.apache.org/viewvc?rev=613916&view=rev
Log:
Fix a build break in JDK1.6, add some defensive code for NPE

Modified:
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java?rev=613916&r1=613915&r2=613916&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java
Mon Jan 21 07:26:53 2008
@@ -807,7 +807,11 @@
         // Look for the WSDL file as follows:
         // 1) As a resource on the classpath
 
-        URL url = composite.getClassLoader().getResource(wsdlLocation);
+        ClassLoader loader = composite.getClassLoader();
+        URL url = null;
+        if (loader != null) {
+            url = loader.getResource(wsdlLocation);
+        }
 
         // 2) As a fully specified URL
         if (url == null) {



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


Mime
View raw message