Merge "sonar critical for Exception handling"
authorvarun gudisena <vg411h@att.com>
Tue, 6 Feb 2018 14:25:11 +0000 (14:25 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 6 Feb 2018 14:25:11 +0000 (14:25 +0000)
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java

index 8be0aa4..341e6bd 100644 (file)
@@ -380,7 +380,7 @@ public class MirrorMakerAgent {
                        }
                }
                logger.info("Adding new MirrorMaker:" + newMirrorMaker.name);
-               if (exists == false && mirrorMakers != null) {
+               if (!exists && mirrorMakers != null) {
                        mirrorMakers.getListMirrorMaker().add(newMirrorMaker);
                } else if (exists == false && mirrorMakers == null) {
                        mirrorMakers = new ListMirrorMaker();