diff --git a/backend/src/main/java/io/metersphere/performance/service/PerformanceReportService.java b/backend/src/main/java/io/metersphere/performance/service/PerformanceReportService.java index 045582a513..87327a2219 100644 --- a/backend/src/main/java/io/metersphere/performance/service/PerformanceReportService.java +++ b/backend/src/main/java/io/metersphere/performance/service/PerformanceReportService.java @@ -214,6 +214,9 @@ public class PerformanceReportService { String reportValue = getContent(id, ReportKeys.RequestStatistics); // 确定顺序 List statistics = JSON.parseArray(reportValue, Statistics.class); + if (CollectionUtils.isEmpty(statistics)) { + return Collections.emptyList(); + } List jmxContent = getJmxContent(id); String jmx = jmxContent.get(0).getJmx(); // 按照JMX顺序重新排序