Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Blocker
-
Resolution: Fixed
-
Component/s: github-api-plugin
-
Labels:None
-
Similar Issues:
Description
I get the following error with version GitHub API 1.89 and 1.90 and PRs aren't build. Had to downgrade to 1.86 to get it working again.
Unable to handle PR# 12984 for repo: xbmc/xbmc
java.lang.NullPointerException
at org.kohsuke.github.GHPerson.populate(GHPerson.java:44)
at org.kohsuke.github.GHPerson.getName(GHPerson.java:184)
at org.jenkinsci.plugins.ghprb.GhprbPullRequest.updatePR(GhprbPullRequest.java:271)
at org.jenkinsci.plugins.ghprb.GhprbPullRequest.check(GhprbPullRequest.java:161)
at org.jenkinsci.plugins.ghprb.GhprbRepository.onPullRequestHook(GhprbRepository.java:382)
at org.jenkinsci.plugins.ghprb.GhprbTrigger.handlePR(GhprbTrigger.java:676)
at org.jenkinsci.plugins.ghprb.GhprbRootAction$2.run(GhprbRootAction.java:252)
I am experiencing the same issue. After restarting jenkins it goes away for a little while, then starts happening again. Very frustrating as builds just don't start.
At first i thought it may have something to do with the author of the PR (looking at the stack trace), but it sometimes happens for pull requests created by a user for which previous builds worked just fine.
EDIT: my stack trace is a little bit different:
And thing is - once this starts happening for a PR - it does not go away, you have to restart Jenkins to temporarily fix it.