diff options
-rw-r--r-- | src/main/java/com/att/nsa/dmaap/filemonitor/ServicePropertiesMap.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/att/nsa/dmaap/filemonitor/ServicePropertiesMap.java b/src/main/java/com/att/nsa/dmaap/filemonitor/ServicePropertiesMap.java index 0f7744c..7f12696 100644 --- a/src/main/java/com/att/nsa/dmaap/filemonitor/ServicePropertiesMap.java +++ b/src/main/java/com/att/nsa/dmaap/filemonitor/ServicePropertiesMap.java @@ -62,6 +62,7 @@ public class ServicePropertiesMap filePath = file.getPath(); } + if(filePath != null) { if(filePath.lastIndexOf(".json")>0){ ObjectMapper om = new ObjectMapper(); @@ -89,6 +90,7 @@ public class ServicePropertiesMap mapOfMaps.put(file.getName(), propMap); } + } logger.info("File - " + file.getName() + " is loaded into the map and the " + "corresponding system properties have been refreshed"); |