Bugfix: if the cache dir from the config file does not exist, do not use it
This commit is contained in:
@@ -242,7 +242,7 @@ public class SettingsLoader {
|
||||
if (config.getNbCores() == -1 && cores != null) {
|
||||
config.setUseNbCores(Integer.valueOf(cores));
|
||||
}
|
||||
if (config.getUserSpecifiedACacheDir() == false && cacheDir != null) {
|
||||
if (config.getUserSpecifiedACacheDir() == false && cacheDir != null && new File(cacheDir).exists()) {
|
||||
config.setCacheDir(new File(cacheDir));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user