summaryrefslogtreecommitdiffstats
path: root/auth/auth-batch
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2019-03-23 06:06:07 -0500
committerInstrumental <jonathan.gathman@att.com>2019-03-23 06:06:36 -0500
commit382faab29b7e25062b3a7783caf9680970efe50f (patch)
tree16ed2047fd0bd3885875b5f583e3695df695c46c /auth/auth-batch
parentd86e3224e6a5af2bd2b713f93bea5e6677d3ebc2 (diff)
Remove Sonar False Positive
Issue-ID: AAF-789 Change-Id: I45395a10db621fb1dd4a4cc0806e0244554d67d0 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-batch')
-rw-r--r--auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/Notify.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/Notify.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/Notify.java
index e6ce0849..cc6a611e 100644
--- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/Notify.java
+++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/Notify.java
@@ -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())));