Skip to content

Commit

Permalink
Fix for issue #426. Fix null pointer when deleting refs.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvanzijl committed Aug 13, 2018
1 parent d61697a commit c309c2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,9 @@ public PagedIterable<GHRef> listRefs() throws IOException {
public PagedIterator<GHRef> _iterator(int pageSize) {
return new PagedIterator<GHRef>(root.retrieve().asIterator(url, GHRef[].class, pageSize)) {
protected void wrapUp(GHRef[] page) {
// no-op
for(GHRef p: page) {
p.wrap(root);
}
}
};
}
Expand Down

0 comments on commit c309c2c

Please sign in to comment.