Fix Json Analyze failed Issue 27/24827/1
authorc00149107 <chenchuanyu@huawei.com>
Wed, 22 Nov 2017 01:16:53 +0000 (09:16 +0800)
committerc00149107 <chenchuanyu@huawei.com>
Wed, 22 Nov 2017 01:18:09 +0000 (09:18 +0800)
Fix Json Analyze failed Issue

Issue-ID: SO-348
Change-Id: Ibfea7d2cfa5e62e4d8e251a17908d4f7bc8de154
Signed-off-by: c00149107 <chenchuanyu@huawei.com>
bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/JsonUtils.java

index d0de819..640dc69 100644 (file)
@@ -928,7 +928,7 @@ public class JsonUtils {
                JSONObject obj = new JSONObject(stringListJson);\r
                JSONArray arr = obj.getJSONArray("strings");\r
                for (int i = 0; i < arr.length(); i++){\r
-                       String s = arr.getString(i);\r
+                       String s = arr.get(i).toString();\r
                        list.add(s);\r
                }\r
                msoLogger.debug("Outgoing List is: " + list);\r