From 83d475aeef872a2a164dd528c44a0d7b18a10b7a Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Sun, 16 Jun 2024 19:08:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E8=AF=A6=E6=83=85=E5=8A=9F=E8=83=BD=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E6=80=BB=E6=95=B0=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/plan/service/TestPlanReportService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanReportService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanReportService.java index a77890668e..7d8e564525 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanReportService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanReportService.java @@ -502,7 +502,7 @@ public class TestPlanReportService { planReportDetail.setBugCount(reportSummary.getBugCount().intValue()); // 暂时只有功能用例能关联缺陷 Long functionalBugCount = extTestPlanReportFunctionalCaseMapper.countBug(reportId); - planReportDetail.setFunctionalBugCount(functionalBugCount.intValue()); + planReportDetail.setFunctionalBugCount(functionalBugCount == null ? 0 : functionalBugCount.intValue()); if (planReport.getIntegrated()) { // 计划组报告, 需要统计计划的执行数据 planReportDetail.setPlanCount(reportSummary.getPlanCount().intValue());