Skip to content

Commit

Permalink
fix(项目设置): 首次登入后,偶现后台报错
Browse files Browse the repository at this point in the history
--bug=1025921 --user=陈建星 [安装部署]一键安装后首次登录系统后台日志报错 https://www.tapd.cn/55049933/s/1367808
  • Loading branch information
AgAngle committed Apr 28, 2023
1 parent 60121fe commit 3482b00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,9 @@ public int getProjectBugSize(String projectId) {
}

public boolean isVersionEnable(String projectId) {
if (StringUtils.isBlank(projectId)) {
return false;
}
return extProjectVersionMapper.isVersionEnable(projectId);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ public Map<String,List<String>> getCaseLevelAndStatusMapByProjectId(String proje

public TestCaseTemplateDao getTemplate(String projectId) {
Project project = projectService.getProjectById(projectId);
if (project == null) {
return null;
}
String caseTemplateId = project.getCaseTemplateId();
TestCaseTemplateWithBLOBs caseTemplate;
TestCaseTemplateDao caseTemplateDao = new TestCaseTemplateDao();
Expand Down

0 comments on commit 3482b00

Please sign in to comment.