diff --git a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java index 9611078a95..2c5caa6c41 100644 --- a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java +++ b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java @@ -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()); } }