aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapter-utils/src/main
diff options
context:
space:
mode:
authorLukasz Muszkieta <lukasz.muszkieta@nokia.com>2019-10-03 16:40:31 +0000
committerGerrit Code Review <gerrit@onap.org>2019-10-03 16:40:31 +0000
commit8fee4fd7a88ec025e142bafa50cc7e0dc8610b0d (patch)
treed13a31abaa780e7d473d0a52c2e09d9f5e495d42 /adapters/mso-adapter-utils/src/main
parentbe8ac5839bc9a4c30d396678ef1d352518c6ccd0 (diff)
parent7eb39ea80ffc95ad207c0e6bfc4d76a85229e463 (diff)
Merge "Added null check for executions variable to prevent a static analyzer warning"
Diffstat (limited to 'adapters/mso-adapter-utils/src/main')
-rw-r--r--adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java b/adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java
index 4eb16d46b2..ad2543032f 100644
--- a/adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java
+++ b/adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java
@@ -566,7 +566,7 @@ public class MsoCloudifyUtils extends MsoCommonUtils implements VduPlugin {
Executions executions = listExecutions.execute();
// If no executions, does this give NOT_FOUND or empty set?
- if (executions.getItems().isEmpty()) {
+ if (executions == null || executions.getItems().isEmpty()) {
return new DeploymentInfoBuilder().withId(deployment.getId())
.withDeploymentInputs(deployment.getInputs()).build();
} else {