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);