summaryrefslogtreecommitdiffstats
path: root/bpmn
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2017-09-19 12:38:51 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-19 12:38:51 +0000
commitd237848b082cbdd7f742f61e27835678a4e21436 (patch)
tree67c154f25e95d6804dbaeeb6560eeace49dfeb80 /bpmn
parentb8d85a4fb5d4c55bed51af9515c1f9114fcaf6fe (diff)
parentab9de38d32244138d1258db9ae7528a1ecd5bdd4 (diff)
Merge "Fix Blocker/Critical sonar issues"
Diffstat (limited to 'bpmn')
-rw-r--r--bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/JsonUtils.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/JsonUtils.java b/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/JsonUtils.java
index 9dbd4b171d..d5170af22d 100644
--- a/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/JsonUtils.java
+++ b/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/JsonUtils.java
@@ -519,9 +519,7 @@ public class JsonUtils {
// String isDebugLogEnabled = "true";
try {
JSONObject jsonObj = new JSONObject(jsonStr);
- if (jsonObj != null) {
- return getJsonValueForKey(jsonObj, key);
- }
+ return getJsonValueForKey(jsonObj, key);
} catch (Exception e) {
msoLogger.debug("getJsonValueForKey(): unable to parse json to retrieve value for field=" + key + ". Exception was: " + e.toString(), e);
}