diff --git a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceTestService.java b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceTestService.java index 379613e3b7..411d600f5d 100644 --- a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceTestService.java +++ b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceTestService.java @@ -835,7 +835,7 @@ public class PerformanceTestService { try { LoadTestReportWithBLOBs report = loadTestReportMapper.selectByPrimaryKey(reportId); Map advancedConfig = JSON.parseObject(report.getAdvancedConfiguration(), Map.class); - if (advancedConfig.get("granularity") != null) { + if (advancedConfig.get("granularity") != null && StringUtils.isNotEmpty(advancedConfig.get("granularity").toString())) { return (int) advancedConfig.get("granularity") * 1000;// 单位是ms } AtomicReference maxDuration = new AtomicReference<>(0);