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 01b8b10

Browse filesBrowse files
committed
Fix NPE found when resolving issues from search api
1 parent 698d642 commit 01b8b10
Copy full SHA for 01b8b10

File tree

Expand file treeCollapse file tree

1 file changed

+6
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHEventPayload.java
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,12 @@ public void setRepository(GHRepository repository) {
104104
@Override
105105
void wrapUp(GitHub root) {
106106
super.wrapUp(root);
107-
repository.wrap(root);
108-
issue.wrap(repository);
107+
if (repository != null) {
108+
repository.wrap(root);
109+
issue.wrap(repository);
110+
} else {
111+
issue.wrap(root);
112+
}
109113
comment.wrapUp(issue);
110114
}
111115
}

0 commit comments

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