You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I receive an NPE on GHCommitPointer#getCommit because getRepository() returns null.
I assume getRepository() should always be populated as I need a GHRepository to even get the initial PR/issue in the first place.
To Reproduce
While scanning https://github.com/checkstyle/checkstyle/pulls , I pick up PR 1.
I call GHPullRequest#getHead() and get the GHCommitPointer.
I call GHCommitPointer#getCommit() and receive an NPE. getRepository() returns null.
Expected behavior
No NPE.
Additional context
GHPullRequest#getBase() doesn't seem to have this issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
I receive an NPE on
GHCommitPointer#getCommit
becausegetRepository()
returnsnull
.I assume
getRepository()
should always be populated as I need aGHRepository
to even get the initial PR/issue in the first place.To Reproduce
While scanning https://github.com/checkstyle/checkstyle/pulls , I pick up PR 1.
I call
GHPullRequest#getHead()
and get theGHCommitPointer
.I call
GHCommitPointer#getCommit()
and receive an NPE.getRepository()
returnsnull
.Expected behavior
No NPE.
Additional context
GHPullRequest#getBase()
doesn't seem to have this issue.The text was updated successfully, but these errors were encountered: