Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE during tag.getCommit().getLastStatus() #152

Closed
vbauer opened this issue Feb 8, 2015 · 0 comments
Closed

NPE during tag.getCommit().getLastStatus() #152

vbauer opened this issue Feb 8, 2015 · 0 comments

Comments

@vbauer
Copy link

vbauer commented Feb 8, 2015

NPE on the line "final GHCommitStatus lastStatus = commit.getLastStatus();", because owner is null.

    public Date getDate(final GHTag tag) throws Exception {
            final GHCommit commit = tag.getCommit();
            final GHCommitStatus lastStatus = commit.getLastStatus();
            return lastStatus.getCreatedAt();
    }

It looks like there is no way to retrieve information about tag/commit date.

kohsuke added a commit that referenced this issue Feb 15, 2015
@kohsuke kohsuke closed this as completed Feb 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants