{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/git-plugin/issues/310","labels_url":"https://api.github.com/repos/jenkinsci/git-plugin/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/git-plugin/issues/310/comments","events_url":"https://api.github.com/repos/jenkinsci/git-plugin/issues/310/events","html_url":"https://github.com/jenkinsci/git-plugin/pull/310","id":60672521,"number":310,"title":"Fixed NPE during getting branch name","user":{"login":"egergo","id":359670,"avatar_url":"https://avatars.githubusercontent.com/u/359670?v=3","gravatar_id":"","url":"https://api.github.com/users/egergo","html_url":"https://github.com/egergo","followers_url":"https://api.github.com/users/egergo/followers","following_url":"https://api.github.com/users/egergo/following{/other_user}","gists_url":"https://api.github.com/users/egergo/gists{/gist_id}","starred_url":"https://api.github.com/users/egergo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egergo/subscriptions","organizations_url":"https://api.github.com/users/egergo/orgs","repos_url":"https://api.github.com/users/egergo/repos","events_url":"https://api.github.com/users/egergo/events{/privacy}","received_events_url":"https://api.github.com/users/egergo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-11T15:05:04Z","updated_at":"2015-03-11T18:01:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/git-plugin/pulls/310","html_url":"https://github.com/jenkinsci/git-plugin/pull/310","diff_url":"https://github.com/jenkinsci/git-plugin/pull/310.diff","patch_url":"https://github.com/jenkinsci/git-plugin/pull/310.patch"},"body":"An NPE is thrown if the previous build does not contain a branch name.\r\n\r\njava.lang.NullPointerException\r\n\tat hudson.plugins.git.GitSCM.getBranchName(GitSCM.java:1174)\r\n\tat hudson.plugins.git.GitSCM.buildEnvVars(GitSCM.java:1138)\r\n\tat hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:922)\r\n\tat hudson.plugins.git.GitSCM.checkout(GitSCM.java:1009)\r\n\tat hudson.scm.SCM.checkout(SCM.java:484)\r\n\tat hudson.model.AbstractProject.checkout(AbstractProject.java:1270)\r\n\tat hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609)\r\n\tat jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)"},"comment":{"url":"https://api.github.com/repos/jenkinsci/git-plugin/issues/comments/78323568","html_url":"https://github.com/jenkinsci/git-plugin/pull/310#issuecomment-78323568","issue_url":"https://api.github.com/repos/jenkinsci/git-plugin/issues/310","id":78323568,"user":{"login":"jenkinsadmin","id":874715,"avatar_url":"https://avatars.githubusercontent.com/u/874715?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsadmin","html_url":"https://github.com/jenkinsadmin","followers_url":"https://api.github.com/users/jenkinsadmin/followers","following_url":"https://api.github.com/users/jenkinsadmin/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsadmin/subscriptions","organizations_url":"https://api.github.com/users/jenkinsadmin/orgs","repos_url":"https://api.github.com/users/jenkinsadmin/repos","events_url":"https://api.github.com/users/jenkinsadmin/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsadmin/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T18:01:11Z","updated_at":"2015-03-11T18:01:11Z","body":"Thank you for a pull request! Please check [this document](http://jenkins-ci.org/pull-request-greeting) for how the Jenkins project handles pull requests"}}