diff options
author | Lukasz Muszkieta <lukasz.muszkieta@nokia.com> | 2019-10-03 16:40:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-10-03 16:40:31 +0000 |
commit | 8fee4fd7a88ec025e142bafa50cc7e0dc8610b0d (patch) | |
tree | d13a31abaa780e7d473d0a52c2e09d9f5e495d42 | |
parent | be8ac5839bc9a4c30d396678ef1d352518c6ccd0 (diff) | |
parent | 7eb39ea80ffc95ad207c0e6bfc4d76a85229e463 (diff) |
Merge "Added null check for executions variable to prevent a static analyzer warning"
-rw-r--r-- | adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java | 2 |
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 { |