fix: 执行接口用例,日志报空指针

This commit is contained in:
chenjianxing 2021-03-25 14:19:47 +08:00
parent fa78e9a7f5
commit ba17d9f93d
1 changed files with 3 additions and 0 deletions

View File

@ -254,6 +254,9 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl
}
private static void sendTask(ApiTestReport report, String reportUrl, TestResult testResult) {
if (report == null) {
return;
}
SystemParameterService systemParameterService = CommonBeanFactory.getBean(SystemParameterService.class);
NoticeSendService noticeSendService = CommonBeanFactory.getBean(NoticeSendService.class);
assert systemParameterService != null;