From 003853d0d95c142e857b9e73f0164123e7e685ef Mon Sep 17 00:00:00 2001 From: Ofir Sonsino Date: Fri, 4 Oct 2019 10:51:15 +0000 Subject: Revert "Sonar fix NullPointerException" This reverts commit b0f96a46e2720c75eb035bbe94015e5a1c6b0b32. Issue-ID: SDC-2542 Change-Id: I63b5349670c8e5fa814d686cfa93173d0ea6297e Signed-off-by: Ofir Sonsino --- .../model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-model/src/main/java/org/openecomp') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java index a0e6e7e12d..771620d758 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java @@ -560,7 +560,7 @@ public class ToscaElementLifecycleOperation extends BaseOperation { result = StorageOperationStatus.NOT_FOUND; } } - if (result == null && foundEdge!=null) { + if (result == null) { JanusGraphOperationStatus createEdgeRes = janusGraphDao .createEdge(foundEdge.outVertex(), certifiedToscaElement.getVertex(), EdgeLabelEnum.LAST_STATE, foundEdge); -- cgit 1.2.3-korg