Skip to content

Commit

Permalink
[KARAF-7255] Prevent NPE in the JsonConfigInstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
jbonofre committed Sep 27, 2021
1 parent e1dde27 commit 69c054c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void configurationEvent(ConfigurationEvent event) {
Configuration configuration = configurationAdmin.getConfiguration(event.getPid(), null);
Dictionary<String, Object> dictionary = configuration.getProcessedProperties(null);
File file = null;
if (dictionary.get(DirectoryWatcher.FILENAME) != null) {
if (dictionary != null && dictionary.get(DirectoryWatcher.FILENAME) != null) {
file = getCfgFileFromProperty(configuration.getProperties().get(DirectoryWatcher.FILENAME));
}
if (file != null && canHandle(file)) {
Expand Down

0 comments on commit 69c054c

Please sign in to comment.