diff options
author | Lukasz Muszkieta <lukasz.muszkieta@nokia.com> | 2019-09-30 15:05:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-09-30 15:05:06 +0000 |
commit | 4e944d4149bfcf7196691c57f3ae6659ffd05960 (patch) | |
tree | 326f50fcccbb4d2225bc8c297109022f610cd2d0 /adapters/mso-adapter-utils | |
parent | d4c2f4467d3981f3856f328e747ec92023ef298a (diff) | |
parent | bcba1e15d0e55eb90d0910dbbe3d30e9d88ed2bf (diff) |
Merge "Added null check for execute() result to remove static analyzer warning"
Diffstat (limited to 'adapters/mso-adapter-utils')
-rw-r--r-- | adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java | 6 |
1 files changed, 5 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 2a17656f1d..4eb16d46b2 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 @@ -419,7 +419,11 @@ public class MsoCloudifyUtils extends MsoCommonUtils implements VduPlugin { logger.debug("pollTimeout remaining: " + pollTimeout); execution = queryExecution.execute(); - status = execution.getStatus(); + if (execution != null) { + status = execution.getStatus(); + } else { + status = TERMINATED; + } } // Broke the loop. Check again for a terminal state |