fix(性能测试): 修复后台查询监控空指针

This commit is contained in:
Captain.B 2021-09-18 15:05:34 +08:00 committed by 刘瑞斌
parent 3e95be5e71
commit 6b19a77cd5
1 changed files with 4 additions and 0 deletions

View File

@ -198,6 +198,10 @@ public class MetricQueryService {
}); });
ReportTimeInfo reportTimeInfo = performanceReportService.getReportTimeInfo(reportId); ReportTimeInfo reportTimeInfo = performanceReportService.getReportTimeInfo(reportId);
// 处理reportTime 空指针报错
if (reportTimeInfo == null) {
return new ArrayList<>();
}
MetricRequest metricRequest = new MetricRequest(); MetricRequest metricRequest = new MetricRequest();
metricRequest.setMetricDataQueries(list); metricRequest.setMetricDataQueries(list);
try { try {