From f6b59cb94630276afa4a718e22dfe11ac04a73a6 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Tue, 12 Jul 2022 13:45:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=91=E9=80=81=E6=B5=8B=E8=AF=95=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E9=80=9A=E7=9F=A5=E6=97=B6=E6=9C=AA=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=98=AF=E5=90=A6=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复发送测试计划通知时未判断测试计划是否存在的问题 --- .../io/metersphere/track/service/TestPlanMessageService.java | 3 +++ 1 file changed, 3 insertions(+) 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); }