summaryrefslogtreecommitdiffstats
path: root/aai-core/src
diff options
context:
space:
mode:
authorshashikanth <shashikanth.vh@huawei.com>2017-09-21 11:00:20 +0530
committershashikanth <shashikanth.vh@huawei.com>2017-09-21 11:00:21 +0530
commitb9bbf9ca774eccdd0961ffd1829ec17e24e25efd (patch)
tree54397eafedfa920c49bc084dceb1604e9a616b3f /aai-core/src
parent69458d2533e9e158d606aa3af9708f91a065c32e (diff)
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 <shashikanth.vh@huawei.com>
Diffstat (limited to 'aai-core/src')
-rw-r--r--aai-core/src/main/java/org/openecomp/aai/dbgen/DataGrooming.java2
1 files changed, 1 insertions, 1 deletions
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) {