Verify that the default location is valid.
[jSite.git] / src / de / todesbaum / jsite / main / ConfigurationLocator.java
index 2d7ed45..0c7d118 100644 (file)
@@ -173,7 +173,10 @@ public class ConfigurationLocator {
                if (hasFile(ConfigurationLocation.HOME_DIRECTORY)) {
                        return ConfigurationLocation.HOME_DIRECTORY;
                }
-               return defaultLocation;
+               if (isValidLocation(defaultLocation)) {
+                       return defaultLocation;
+               }
+               return ConfigurationLocation.HOME_DIRECTORY;
        }
 
 }