commit | 8fee4fd7a88ec025e142bafa50cc7e0dc8610b0d | [log] [tgz] |
---|---|---|
author | Lukasz Muszkieta <lukasz.muszkieta@nokia.com> | Thu Oct 03 16:40:31 2019 +0000 |
committer | Gerrit Code Review <gerrit@onap.org> | Thu Oct 03 16:40:31 2019 +0000 |
tree | d13a31abaa780e7d473d0a52c2e09d9f5e495d42 | |
parent | be8ac5839bc9a4c30d396678ef1d352518c6ccd0 [diff] | |
parent | 7eb39ea80ffc95ad207c0e6bfc4d76a85229e463 [diff] |
Merge "Added null check for executions variable to prevent a static analyzer warning"
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 4eb16d4..ad25430 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 @@ 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 {