Remove Sonar False Positive 00/83100/1
authorInstrumental <jonathan.gathman@att.com>
Sat, 23 Mar 2019 11:06:07 +0000 (06:06 -0500)
committerInstrumental <jonathan.gathman@att.com>
Sat, 23 Mar 2019 11:06:36 +0000 (06:06 -0500)
Issue-ID: AAF-789
Change-Id: I45395a10db621fb1dd4a4cc0806e0244554d67d0
Signed-off-by: Instrumental <jonathan.gathman@att.com>
auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/Notify.java

index e6ce084..cc6a611 100644 (file)
@@ -360,6 +360,9 @@ import org.onap.aaf.misc.env.util.Chrono;
                                                 }
                                                 idList.add(ident.fullID());
                                         }
+                                        if(identity==null) { // Actually, identity can't be null here, because
+                                                break;           // if(identities.isEmpty() {..} else {... <here>
+                                        }                    // So this is here to avoid Sonar false positive only
                                         StringBuilder content = new StringBuilder();
                                         content.append(String.format(header,version,Identity.mixedCase(identity.firstName())));