fix(场景自动化): 环境检查

This commit is contained in:
shiziyuan9527 2021-05-11 16:50:11 +08:00 committed by 刘瑞斌
parent 75f46c6c66
commit 7a0ff6d8b8
1 changed files with 1 additions and 0 deletions

View File

@ -1013,6 +1013,7 @@ public class ApiAutomationService {
isEnv = false; isEnv = false;
} else { } else {
Set<String> projectIds = apiScenarioEnv.getProjectIds(); Set<String> projectIds = apiScenarioEnv.getProjectIds();
projectIds.remove(null);
if (CollectionUtils.isNotEmpty(envMap.keySet())) { if (CollectionUtils.isNotEmpty(envMap.keySet())) {
for (String id : projectIds) { for (String id : projectIds) {
Project project = projectMapper.selectByPrimaryKey(id); Project project = projectMapper.selectByPrimaryKey(id);