Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6effd4b

Browse filesBrowse files
authored
Merge pull request hub4j#396 from Rechi/fixGHPersonNullPointer
[fix] GHPerson: check if root is null
2 parents e25ae27 + ab6253c commit 6effd4b
Copy full SHA for 6effd4b

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/main/java/org/kohsuke/github/GHPerson.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHPerson.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected synchronized void populate() throws IOException {
4141
if (created_at!=null) {
4242
return; // already populated
4343
}
44-
if (root.isOffline()) {
44+
if (root == null || root.isOffline()) {
4545
return; // cannot populate, will have to live with what we have
4646
}
4747
root.retrieve().to(url, this);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.