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 2006/04/26 16:44:39 UTC
svn commit: r397207 -
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/FileSystemConfigurator.java
Author: dims
Date: Wed Apr 26 07:44:37 2006
New Revision: 397207
URL: http://svn.apache.org/viewcvs?rev=397207&view=rev
Log:
prevent unnecessary exception and trace
Modified:
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/FileSystemConfigurator.java
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/FileSystemConfigurator.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/FileSystemConfigurator.java?rev=397207&r1=397206&r2=397207&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/FileSystemConfigurator.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/FileSystemConfigurator.java Wed Apr 26 07:44:37 2006
@@ -57,11 +57,13 @@
// OK, we've got a repository location in mind. Let's make
// sure it exists.
try {
- File repo = new File(repoLocation);
- if (repo.exists()) {
- // ok, save it if so
- this.repoLocation = repo.getAbsolutePath();
- }
+ if(repoLocation != null) {
+ File repo = new File(repoLocation);
+ if (repo.exists()) {
+ // ok, save it if so
+ this.repoLocation = repo.getAbsolutePath();
+ }
+ }
} catch (Exception e) {
log.info("Couldn't find repository location '" +
repoLocation + "'");