fix(测试跟踪): 修复发送测试计划通知时未判断测试计划是否存在的问题

修复发送测试计划通知时未判断测试计划是否存在的问题
This commit is contained in:
song-tianyang 2022-07-12 13:45:58 +08:00 committed by f2c-ci-robot[bot]
parent 8efcfeec2a
commit ebff7072aa
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}