fix(idea 插件): 导入接口空指针报错

This commit is contained in:
zhangdahai112 2022-08-09 18:13:10 +08:00 committed by zhangdahai112
parent 5779930f56
commit 6ea7c2a5e5
1 changed files with 1 additions and 1 deletions

View File

@ -1216,7 +1216,7 @@ public class ApiModuleService extends NodeTreeService<ApiModuleDTO> {
}
List<ApiTestCaseWithBLOBs> caseWithBLOBs = definitionIdCaseMAp.get(apiDefinitionWithBLOBs.getId());
if (CollectionUtils.isNotEmpty(caseWithBLOBs)) {
return caseWithBLOBs.stream().filter(t -> !t.getVersionId().equals("create_repeat")).collect(Collectors.toMap(ApiTestCase::getName, testCase -> testCase));
return caseWithBLOBs.stream().filter(t -> !StringUtils.equalsIgnoreCase("create_repeat", t.getVersionId())).collect(Collectors.toMap(ApiTestCase::getName, testCase -> testCase));
} else {
return null;
}