Commit 6b93e124 authored by acq's avatar acq
Browse files

correct bug null ptr

parent 8ff9bf8d
4.0.10 DD/MM/YYYY 4.0.10 DD/MM/YYYY
------ ------
* Correct bug for null ptr in contruction of local setting directory
4.0.9 19/05/2020 4.0.9 19/05/2020
----- -----
......
...@@ -642,13 +642,15 @@ public class ConfigManager { ...@@ -642,13 +642,15 @@ public class ConfigManager {
} }
private static void setLocalFilesDirectory(String tmp) { private static void setLocalFilesDirectory(String tmp) {
if (tmp.isEmpty() == false) { if (tmp != null) {
if (!new File(tmp).exists()) { if (tmp.isEmpty() == false) {
// Directory does not exist: create it if (!new File(tmp).exists()) {
File file = new File(tmp); // Directory does not exist: create it
file.mkdir(); File file = new File(tmp);
file.mkdir();
}
localFilesDirectory = tmp;
} }
localFilesDirectory = tmp;
} }
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment