THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

issue: Add defense code on Null Pointer Exception

tags/v1.11.0
Suwon Chae 1 year ago
parent
commit
7659b39d5d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/controllers/IssueApp.java

+ 3
- 1
app/controllers/IssueApp.java View File

@@ -221,7 +221,9 @@ public class IssueApp extends AbstractPostingApp {
result.put("title", issue.title);
result.put("state", issue.state.toString());
result.put("createdDate", issue.createdDate.toString());
result.put("link", routes.IssueApp.issue(project.owner, project.name, issueId).toString());
if (project != null) {
result.put("link", routes.IssueApp.issue(project.owner, project.name, issueId).toString());
}
listData.put(issue.id.toString(), result);
}



Loading…
Cancel
Save