From ab6253cbd0a0d82c72ce5e212a799c7d40c36755 Mon Sep 17 00:00:00 2001 From: Rechi Date: Thu, 9 Nov 2017 22:41:49 +0100 Subject: [PATCH] [fix] GHPerson: check if root is null --- src/main/java/org/kohsuke/github/GHPerson.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/kohsuke/github/GHPerson.java b/src/main/java/org/kohsuke/github/GHPerson.java index f9872699ce..87cb8efaa7 100644 --- a/src/main/java/org/kohsuke/github/GHPerson.java +++ b/src/main/java/org/kohsuke/github/GHPerson.java @@ -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);