Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39662

NPE with multi-config project

    XMLWordPrintable

Details

    Description

      When using the GitHub Issues Plugin with a multi-config project, a NullPointerException is thrown:

      java.lang.NullPointerException
      	at org.jenkinsci.plugins.githubissues.GitHubIssueNotifier.getRepoForJob(GitHubIssueNotifier.java:58)
      	at org.jenkinsci.plugins.githubissues.GitHubIssueNotifier.perform(GitHubIssueNotifier.java:90)
      	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      	at hudson.model.Build$BuildExecution.post2(Build.java:185)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      	at hudson.model.Run.execute(Run.java:1745)
      	at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      Build step 'Create GitHub issue on failure' marked build as failure
      

      Attachments

        Activity

          Might be using GitHubProjectProperty incorrectly. Can look through code on GitHub to see how other plugins use it: https://github.com/search?q=getProperty%28GithubProjectProperty.class%29&type=Code&utf8=%E2%9C%93

          daniel15 Daniel Lo Nigro added a comment - Might be using GitHubProjectProperty incorrectly. Can look through code on GitHub to see how other plugins use it: https://github.com/search?q=getProperty%28GithubProjectProperty.class%29&type=Code&utf8=%E2%9C%93

          Code changed in jenkins
          User: Daniel Lo Nigro
          Path:
          src/main/java/org/jenkinsci/plugins/githubissues/GitHubIssueNotifier.java
          src/main/java/org/jenkinsci/plugins/githubissues/exceptions/GitHubRepositoryException.java
          http://jenkins-ci.org/commit/github-issues-plugin/b473330e7b889a4ca784b132e3b561a91ff75bb4
          Log:
          Fix JENKINS-39662: NullPointerException for multi-config projects #close

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Lo Nigro Path: src/main/java/org/jenkinsci/plugins/githubissues/GitHubIssueNotifier.java src/main/java/org/jenkinsci/plugins/githubissues/exceptions/GitHubRepositoryException.java http://jenkins-ci.org/commit/github-issues-plugin/b473330e7b889a4ca784b132e3b561a91ff75bb4 Log: Fix JENKINS-39662 : NullPointerException for multi-config projects #close

          People

            daniel15 Daniel Lo Nigro
            daniel15 Daniel Lo Nigro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: