fix: 修复停止性能测试的时候无法关闭socket造成空指针的错误

This commit is contained in:
Captain.B 2020-07-20 14:32:46 +08:00
parent 0edc40b09e
commit 9535758d0d
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class ReportWebSocket {
while (stopMe) {
try {
LoadTestReport report = reportService.getReport(reportId);
if (StringUtils.equalsAny(report.getStatus(), PerformanceTestStatus.Completed.name(), PerformanceTestStatus.Error.name())) {
if (report == null || StringUtils.equalsAny(report.getStatus(), PerformanceTestStatus.Completed.name(), PerformanceTestStatus.Error.name())) {
this.stopMe();
session.close();
break;