Fix Blocker/Critical sonar issues
[so.git] / bpmn / MSOCoreBPMN / src / main / java / org / openecomp / mso / bpmn / core / json / JsonUtils.java
index 9dbd4b1..d5170af 100644 (file)
@@ -519,9 +519,7 @@ public class JsonUtils {
 //             String isDebugLogEnabled = "true";\r
                try {\r
                        JSONObject jsonObj = new JSONObject(jsonStr);\r
-                       if (jsonObj != null) {\r
-                               return getJsonValueForKey(jsonObj, key);\r
-                       }\r
+                       return getJsonValueForKey(jsonObj, key);\r
                } catch (Exception e) {\r
                                msoLogger.debug("getJsonValueForKey(): unable to parse json to retrieve value for field=" + key + ". Exception was: " + e.toString(), e);\r
                }\r