fix(接口定义): 修复报告重置触发方式页面报错的缺陷

--bug=1017364 --user=王孝刚 【接口测试】接口报告 - 用例报告,重置触发方式下拉筛选框,页面会报错
https://www.tapd.cn/55049933/s/1252659
This commit is contained in:
wxg0103 2022-09-27 11:26:58 +08:00 committed by f2c-ci-robot[bot]
parent 0525af0ca3
commit a777f826dc
1 changed files with 1 additions and 1 deletions

View File

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