From e2e23293015d69e2430218c6282826f3c6b1365b Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Sun, 15 Feb 2015 07:16:18 -0800 Subject: [PATCH] Noting issue #60 that this method can return null --- src/main/java/org/kohsuke/github/GHIssue.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/kohsuke/github/GHIssue.java b/src/main/java/org/kohsuke/github/GHIssue.java index 4978427c69..738b50a75c 100644 --- a/src/main/java/org/kohsuke/github/GHIssue.java +++ b/src/main/java/org/kohsuke/github/GHIssue.java @@ -225,7 +225,15 @@ public GHUser getAssignee() { public GHUser getUser() { return user; } - + + /** + * Reports who has closed the issue. + * + *

+ * 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;