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

correct bug null ptr

parent 8ff9bf8d
4.0.10 DD/MM/YYYY
------
* Correct bug for null ptr in contruction of local setting directory
4.0.9 19/05/2020
-----
......
......@@ -642,13 +642,15 @@ public class ConfigManager {
}
private static void setLocalFilesDirectory(String tmp) {
if (tmp.isEmpty() == false) {
if (!new File(tmp).exists()) {
// Directory does not exist: create it
File file = new File(tmp);
file.mkdir();
if (tmp != null) {
if (tmp.isEmpty() == false) {
if (!new File(tmp).exists()) {
// Directory does not exist: create it
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