You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2008/03/21 22:35:05 UTC
svn commit: r639863 -
/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java
Author: dims
Date: Fri Mar 21 14:35:05 2008
New Revision: 639863
URL: http://svn.apache.org/viewvc?rev=639863&view=rev
Log:
fix possible NPE
Modified:
webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java
Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java?rev=639863&r1=639862&r2=639863&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java Fri Mar 21 14:35:05 2008
@@ -84,14 +84,15 @@
String dir = DeploymentEngine.getWebLocationString();
if (dir != null) {
File file = new File(dir + "/WEB-INF/classes/");
- if (!file.isDirectory())
+ URL repository = axisConfig.getRepository();
+ if (!file.isDirectory() || repository == null)
return;
ArrayList classList = getClassesInWebInfDirectory(file);
ClassLoader threadClassLoader = null;
try {
threadClassLoader = Thread.currentThread().getContextClassLoader();
ArrayList urls = new ArrayList();
- urls.add(axisConfig.getRepository());
+ urls.add(repository);
String webLocation = DeploymentEngine.getWebLocationString();
if (webLocation != null) {
urls.add(new File(webLocation).toURL());
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org