Skip to content

Commit

Permalink
Merge pull request #205 from stephenc/fix-npe
Browse files Browse the repository at this point in the history
Fix NPE found when resolving issues from search api
  • Loading branch information
oleg-nenashev committed Jul 6, 2015
2 parents 698d642 + 01b8b10 commit 901db92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/org/kohsuke/github/GHEventPayload.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,12 @@ public void setRepository(GHRepository repository) {
@Override
void wrapUp(GitHub root) {
super.wrapUp(root);
repository.wrap(root);
issue.wrap(repository);
if (repository != null) {
repository.wrap(root);
issue.wrap(repository);
} else {
issue.wrap(root);
}
comment.wrapUp(issue);
}
}
Expand Down

0 comments on commit 901db92

Please sign in to comment.