[fix] GHPerson: check if root is null

This commit is contained in:
Rechi
2017-11-09 22:41:49 +01:00
parent e25ae27a15
commit ab6253cbd0

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);