diff options
author | Steve Smokowski <ss835w@att.com> | 2019-06-26 12:59:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-06-26 12:59:31 +0000 |
commit | 1535fc611980495b8c3ac9810fd50008bc66afb7 (patch) | |
tree | 9e8c3eacbe0658def2bf3aaddd170fc36b0cffca /bpmn | |
parent | 4a236628def84575874810d61638aa640e51c804 (diff) | |
parent | 78de7cfde5847f003f6ded666a2338350753217a (diff) |
Merge "Moved code inside IF checking for null ptr to prevent crash"
Diffstat (limited to 'bpmn')
-rw-r--r-- | bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/appc/ApplicationControllerAction.java | 6 |
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); |