From 482165ccf7b32dd671476d0c928ada8a17b2ad10 Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Thu, 25 Aug 2022 18:37:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=20=E8=87=AA=E5=8A=A8=E5=8C=96):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=8A=A5=E5=91=8A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/track/service/TestPlanService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index b9e1797b6d..292d7a1c12 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -1604,7 +1604,11 @@ public class TestPlanService { if (resultMap.get(item.getReportId()) != null && StringUtils.isNotBlank(resultMap.get(item.getReportId()).getContent())) { ApiDefinitionExecResultWithBLOBs execResult = resultMap.get(item.getReportId()); - JSONObject responseObj = JSONObject.parseObject(execResult.getContent()); + JSONObject responseObj = new JSONObject(); + try { + responseObj = JSONObject.parseObject(execResult.getContent()); + } catch (Exception e) { + } if (StringUtils.isNotEmpty(execResult.getEnvConfig())) { responseObj.put("envName", apiDefinitionService.getEnvNameByEnvConfig(execResult.getProjectId(), execResult.getEnvConfig())); }