diff options
Diffstat (limited to 'policy-management/src/main/java/org/onap/policy/drools/persistence/FileSystemPersistence.java')
-rw-r--r-- | policy-management/src/main/java/org/onap/policy/drools/persistence/FileSystemPersistence.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/policy-management/src/main/java/org/onap/policy/drools/persistence/FileSystemPersistence.java b/policy-management/src/main/java/org/onap/policy/drools/persistence/FileSystemPersistence.java index 905e50c2..b436ef97 100644 --- a/policy-management/src/main/java/org/onap/policy/drools/persistence/FileSystemPersistence.java +++ b/policy-management/src/main/java/org/onap/policy/drools/persistence/FileSystemPersistence.java @@ -80,13 +80,15 @@ public class FileSystemPersistence implements SystemPersistence { @Override public void setConfigurationDir(String configDir) { - if (configDir == null) { - configDir = DEFAULT_CONFIGURATION_DIR; + String tempConfigDir = configDir; + + if (tempConfigDir == null) { + tempConfigDir = DEFAULT_CONFIGURATION_DIR; this.configurationDirectory = Paths.get(DEFAULT_CONFIGURATION_DIR); } - if (!configDir.equals(DEFAULT_CONFIGURATION_DIR)) - this.configurationDirectory = Paths.get(configDir); + if (!tempConfigDir.equals(DEFAULT_CONFIGURATION_DIR)) + this.configurationDirectory = Paths.get(tempConfigDir); if (Files.notExists(this.configurationDirectory)) { try { |