Skip to content

Commit

Permalink
Noting issue #60 that this method can return null
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Feb 15, 2015
1 parent 9afad71 commit e2e2329
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/org/kohsuke/github/GHIssue.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,15 @@ public GHUser getAssignee() {
public GHUser getUser() {
return user;
}


/**
* Reports who has closed the issue.
*
* <p>
* Note that GitHub doesn't always seem to report this information
* even for an issue that's already closed. See
* https://github.com/kohsuke/github-api/issues/60.
*/
public GHUser getClosedBy() {
if(!"closed".equals(state)) return null;
if(closed_by != null) return closed_by;
Expand Down

0 comments on commit e2e2329

Please sign in to comment.