summaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCommonBPMN
diff options
context:
space:
mode:
authorOleksandr Moliavko <o.moliavko@samsung.com>2019-06-25 17:02:53 +0300
committerOleksandr Moliavko <o.moliavko@samsung.com>2019-06-25 17:12:31 +0300
commit78de7cfde5847f003f6ded666a2338350753217a (patch)
treea576e2c2762359fa22dd135e299d40d87fff86f1 /bpmn/MSOCommonBPMN
parentf417537f5258530ed15ceaec111ce08a24ad6487 (diff)
Moved code inside IF checking for null ptr to prevent crash
Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com> Change-Id: Ie759b98828f39fba00ccdb7edcd7fc28e83ea50e
Diffstat (limited to 'bpmn/MSOCommonBPMN')
-rw-r--r--bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/appc/ApplicationControllerAction.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/appc/ApplicationControllerAction.java b/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/appc/ApplicationControllerAction.java
index b97b9ac1ca..9828d11186 100644
--- a/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/appc/ApplicationControllerAction.java
+++ b/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/appc/ApplicationControllerAction.java
@@ -113,9 +113,9 @@ public class ApplicationControllerAction {
errorCode = Integer.toString(appCStatus.getCode());
errorMessage = appCStatus.getMessage();
- }
- if (ApplicationControllerSupport.getCategoryOf(appCStatus).equals(StatusCategory.NORMAL)) {
- errorCode = "0";
+ if (ApplicationControllerSupport.getCategoryOf(appCStatus).equals(StatusCategory.NORMAL)) {
+ errorCode = "0";
+ }
}
} catch (JsonProcessingException e) {
logger.error("Incorrect Payload format for action request: {}", action.toString(), e);