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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]