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 1ca6535

Browse filesBrowse files
authored
Merge pull request hub4j#449 from martinvanzijl/issue_426_fix_nullptr_when_deleting_refs
Fix for issue hub4j#426. Fix null pointer when deleting refs.
2 parents 53612ad + c309c2c commit 1ca6535
Copy full SHA for 1ca6535

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRepository.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,9 @@ public PagedIterable<GHRef> listRefs() throws IOException {
813813
public PagedIterator<GHRef> _iterator(int pageSize) {
814814
return new PagedIterator<GHRef>(root.retrieve().asIterator(url, GHRef[].class, pageSize)) {
815815
protected void wrapUp(GHRef[] page) {
816-
// no-op
816+
for(GHRef p: page) {
817+
p.wrap(root);
818+
}
817819
}
818820
};
819821
}

0 commit comments

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