Merge pull request #396 from Rechi/fixGHPersonNullPointer

[fix] GHPerson: check if root is null
This commit is contained in:
Kohsuke Kawaguchi
2018-01-12 08:45:02 -08:00
committed by GitHub

View File

@@ -41,7 +41,7 @@ public abstract class GHPerson extends GHObject {
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);