diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanMessageService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanMessageService.java index e53dbea19d..65b030a817 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanMessageService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanMessageService.java @@ -52,6 +52,9 @@ public class TestPlanMessageService { @Async public void checkTestPlanStatusAndSendMessage(TestPlanReport report, TestPlanReportContentWithBLOBs testPlanReportContent, boolean sendMessage) { + if (report == null) { + return; + } if (testPlanReportContent != null) { report = testPlanReportService.checkTestPlanReportHasErrorCase(report, testPlanReportContent); }