fix(性能测试): 修复性能测试api调用报null的问题

This commit is contained in:
CaptainB 2021-10-28 13:51:26 +08:00 committed by 刘瑞斌
parent 5a4b13a96b
commit ae19c7ba6d
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ public class PerformanceTestService {
if (testPlanLoadCase != null && StringUtils.isNotBlank(testPlanLoadCase.getLoadConfiguration())) {
testReport.setLoadConfiguration(testPlanLoadCase.getLoadConfiguration());
}
if (StringUtils.isNotBlank(testPlanLoadCase.getTestResourcePoolId())) {
if (testPlanLoadCase != null && StringUtils.isNotBlank(testPlanLoadCase.getTestResourcePoolId())) {
testReport.setTestResourcePoolId(testPlanLoadCase.getTestResourcePoolId());
}
}