aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main
diff options
context:
space:
mode:
authorChris André <chris.andre@yoppworks.com>2020-04-21 20:28:38 -0400
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-04-22 10:56:44 +0000
commitc78692e297c0127474d2af000f22316638991c1e (patch)
tree3571b27d6b83bd3ff3c21044f58472449865d166 /catalog-be/src/main
parentc0e480a15a31efb9c0eaedd8d2033c363ccc8db9 (diff)
Add null test to test in `UpgradeBusinessLogic`
Issue-ID: SDC-2915 Signed-off-by: Chris Andre <chris.andre@yoppworks.com> Change-Id: I4e6f27b707b1bdbbecf9a97606c9a655d834fe56
Diffstat (limited to 'catalog-be/src/main')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/upgrade/UpgradeBusinessLogic.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/upgrade/UpgradeBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/upgrade/UpgradeBusinessLogic.java
index c388611824..dbe5141fe0 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/upgrade/UpgradeBusinessLogic.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/upgrade/UpgradeBusinessLogic.java
@@ -276,10 +276,10 @@ public class UpgradeBusinessLogic {
}
return result;
} finally {
- if ( result.isRight() ){
+ if ( result != null && result.isRight() ){
// undo checkout resource in case of failure
LOGGER.debug("Failed to update Allotted resource {} {}, Error {}. UNDOCHEKOUT our resource", resource.getName(), resource.getUniqueId(), result.right().value());
-
+
upgradeStatus.addServiceStatus(request.getServiceId(), ActionStatus.GENERAL_ERROR);
}
}