Skip to content

Commit

Permalink
Merge pull request #396 from Rechi/fixGHPersonNullPointer
Browse files Browse the repository at this point in the history
[fix] GHPerson: check if root is null
  • Loading branch information
kohsuke authored Jan 12, 2018
2 parents e25ae27 + ab6253c commit 6effd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/kohsuke/github/GHPerson.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected synchronized void populate() throws IOException {
if (created_at!=null) {
return; // already populated
}
if (root.isOffline()) {
if (root == null || root.isOffline()) {
return; // cannot populate, will have to live with what we have
}
root.retrieve().to(url, this);
Expand Down

0 comments on commit 6effd4b

Please sign in to comment.