diff --git a/backend/src/main/java/io/metersphere/performance/service/MetricQueryService.java b/backend/src/main/java/io/metersphere/performance/service/MetricQueryService.java index 42205729d8..4f9dfc8735 100644 --- a/backend/src/main/java/io/metersphere/performance/service/MetricQueryService.java +++ b/backend/src/main/java/io/metersphere/performance/service/MetricQueryService.java @@ -198,6 +198,10 @@ public class MetricQueryService { }); ReportTimeInfo reportTimeInfo = performanceReportService.getReportTimeInfo(reportId); + // 处理reportTime 空指针报错 + if (reportTimeInfo == null) { + return new ArrayList<>(); + } MetricRequest metricRequest = new MetricRequest(); metricRequest.setMetricDataQueries(list); try {