NullPointerException might be thrown as 'filePath' is nullable
Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.messageservice%3AdmaapMR1#resolved=false|severities=BLOCKER|assignees=soumendu
Location:
src/main/java/com/att/nsa/dmaap/service/MMRestService.java
Line No-65
Change-Id: I042592bee40553f262baf5861ef61e8404f45a80
Issue-ID: DMAAP-184
Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
                                filePath = file.getPath();
                        }
                        
+                       if(filePath != null) {
                        if(filePath.lastIndexOf(".json")>0){
                                
                                ObjectMapper om = new ObjectMapper();
                                
                                mapOfMaps.put(file.getName(), propMap);
                        }
+                       }
 
                        logger.info("File - " + file.getName() + " is loaded into the map and the "
                                        + "corresponding system properties have been refreshed");