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

GHCommitPointer throws NPE on null repository #2035

Copy link
Copy link
Open
@rnveach

Description

@rnveach
Issue body actions

Describe the bug

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

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