fix(测试计划): 修复执行测试计划报空指针

This commit is contained in:
zhangdahai112 2022-11-21 11:07:51 +08:00 committed by zhangdahai112
parent 6ea6a02fbf
commit 0b768fa446
1 changed files with 2 additions and 1 deletions

View File

@ -298,7 +298,8 @@ public class ApiScenarioExecuteService {
Map<String, String> diffEnvMap = new HashMap<>(); Map<String, String> diffEnvMap = new HashMap<>();
Map<String, String> envMap = runModeConfig.getEnvMap(); Map<String, String> envMap = runModeConfig.getEnvMap();
planEnvMap.forEach((k,v)->{ planEnvMap.forEach((k,v)->{
if (envMap.get(k)!=null){ if (envMap != null && envMap.get(k)!=null){
diffEnvMap.put(k,envMap.get(k)); diffEnvMap.put(k,envMap.get(k));
} }
}); });