Skip to content

Commit

Permalink
Polish apache#4905 : Enhancement the robustness for FileSystemDynamic…
Browse files Browse the repository at this point in the history
…Configuration
  • Loading branch information
mercyblitz committed Aug 29, 2019
1 parent c86bdce commit 295708c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ protected static File initDirectory(URL url) {
rootDirectory = new File("/" + directoryPath);
}

if (!rootDirectory.exists()) { // If the directory does not exist
if (directoryPath == null || !rootDirectory.exists()) { // If the directory does not exist
rootDirectory = new File(DEFAULT_CONFIG_CENTER_DIR_PATH);
}

Expand Down

0 comments on commit 295708c

Please sign in to comment.