Fix Blocker and Critical Sonar issues/bugs.
[aai/aai-common.git] / aai-core / src / main / java / org / openecomp / aai / serialization / db / DBSerializer.java
index c04c460..bf70b69 100644 (file)
@@ -744,7 +744,7 @@ public class DBSerializer {
                                                                        Introspector argumentObject = obj.newIntrospectorInstanceOfNestedProperty(property);
                                                                        
                                                                        Object result = dbToObject(argumentObject, childVertex, seen, depth, nodeOnly, cleanUp);
-                                                                       if (result != null) { 
+                                                                       if (result != null && getList != null) {
                                                                                getList.add(argumentObject.getUnderlyingObject());
                                                                        }