From e2a38bec7f0b3c55ec741eb2b8fc33e2132083f4 Mon Sep 17 00:00:00 2001 From: youys <1272586223@qq.com> Date: Thu, 13 Oct 2022 17:48:15 +0800 Subject: [PATCH] fixbug --- .../java/net/educoder/ecsonar/services/CloudBrainService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/educoder/ecsonar/services/CloudBrainService.java b/src/main/java/net/educoder/ecsonar/services/CloudBrainService.java index 6ebf78b..2cf837a 100644 --- a/src/main/java/net/educoder/ecsonar/services/CloudBrainService.java +++ b/src/main/java/net/educoder/ecsonar/services/CloudBrainService.java @@ -147,6 +147,9 @@ public class CloudBrainService { String projectName = cloudTaskInfoDetailDao.selectProjectNamesByTaskId(taskId); Project project = projectDao.findByName(projectName); + if(project == null){ + return resultVO; + } IssuesMetrics issuesMetrics = projectDao.selectIssuesMetrics(project.getProject_uuid()); resultVO.setTaskName(projectName);