From a777f826dcb9b2da2c2f5fe0a093bfc9ed26ba8a Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 27 Sep 2022 11:26:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=A5=E5=91=8A=E9=87=8D=E7=BD=AE=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E6=96=B9=E5=BC=8F=E9=A1=B5=E9=9D=A2=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1017364 --user=王孝刚 【接口测试】接口报告 - 用例报告,重置触发方式下拉筛选框,页面会报错 https://www.tapd.cn/55049933/s/1252659 --- .../metersphere/api/service/ApiDefinitionExecResultService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java index 92619b5c56..b840068890 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java @@ -549,7 +549,7 @@ public class ApiDefinitionExecResultService { private void initReportRequest(QueryAPIReportRequest request) { if (request != null) { - if (MapUtils.isNotEmpty(request.getFilters()) && request.getFilters().containsKey("trigger_mode")) { + if (MapUtils.isNotEmpty(request.getFilters()) && request.getFilters().containsKey("trigger_mode") && CollectionUtils.isNotEmpty(request.getFilters().get("trigger_mode"))) { boolean filterHasApi = false; for (String triggerMode : request.getFilters().get("trigger_mode")) { if (StringUtils.equalsIgnoreCase(triggerMode, "api")) {