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")) {