From 6b19a77cd58d3e909dd615ecbaf5bcf225c42534 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Sat, 18 Sep 2021 15:05:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0=E6=9F=A5=E8=AF=A2=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E7=A9=BA=E6=8C=87=E9=92=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/performance/service/MetricQueryService.java | 4 ++++ 1 file changed, 4 insertions(+) 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 {