svn commit: r981104 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r981104 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java

lektran
Author: lektran
Date: Sat Jul 31 23:47:55 2010
New Revision: 981104

URL: http://svn.apache.org/viewvc?rev=981104&view=rev
Log:
Null check was incorrectly being used to determine if the directory existed

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java?rev=981104&r1=981103&r2=981104&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java Sat Jul 31 23:47:55 2010
@@ -350,7 +350,7 @@ public class ComponentConfig {
         this.rootLocation = rootLocation.replace('\\', '/');
 
         File rootLocationDir = new File(rootLocation);
-        if (rootLocationDir == null) {
+        if (!rootLocationDir.exists()) {
             throw new ComponentException("The given component root location is does not exist: " + rootLocation);
         }
         if (!rootLocationDir.isDirectory()) {