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 f60a1e1fec..2cae29d652 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java @@ -551,7 +551,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")) {