From b9bbf9ca774eccdd0961ffd1829ec17e24e25efd Mon Sep 17 00:00:00 2001 From: shashikanth Date: Thu, 21 Sep 2017 11:00:20 +0530 Subject: Fixed vOut nullpointer exception Fix Blocker/Critical sonar issues in aai/aai-common module https://sonar.onap.org/component_issues?id=org.onap.aai.aai-common%3Aaai-common#resolved=false|severities=BLOCKER NullPointerException might be thrown as 'vOut' is nullable here Issue-Id:AAI-246 Change-Id: Idc3cc538bc65fc5a7350d6fe72406a5c4dca6f1c Signed-off-by: shashikanth.vh --- aai-core/src/main/java/org/openecomp/aai/dbgen/DataGrooming.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aai-core/src/main/java/org/openecomp/aai/dbgen/DataGrooming.java b/aai-core/src/main/java/org/openecomp/aai/dbgen/DataGrooming.java index 8dca75c5..f2d6a4b8 100644 --- a/aai-core/src/main/java/org/openecomp/aai/dbgen/DataGrooming.java +++ b/aai-core/src/main/java/org/openecomp/aai/dbgen/DataGrooming.java @@ -938,7 +938,7 @@ public class DataGrooming { if( (ghost2 != null) && ghost2FixOn ){ ghost2.remove(); } - else { + else if (vOut != null) { vOut.remove(); } if (singleCommits) { -- cgit 1.2.3-korg