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

NPE in hudson.plugins.parameterizedtrigger.BuildTriggerConfig#resolveProject when no successful builds

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I get the following NPE when viewing the project index page if there are no successful builds.

      java.lang.NullPointerException
      at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.resolveProject(BuildTriggerConfig.java:257)
      at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.iterateBuilds(BuildTriggerConfig.java:221)
      at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getProjectInfo(BuildTriggerConfig.java:157)

        Attachments

          Issue Links

            Activity

            Show
            recampbell Ryan Campbell added a comment - Pull request: https://github.com/jenkinsci/parameterized-trigger-plugin/pull/56
            Hide
            ikedam ikedam added a comment -
            Show
            ikedam ikedam added a comment - I reopen this for https://github.com/jenkinsci/parameterized-trigger-plugin/pull/56 refers this not JENKINS-20931 .
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Ryan Campbell
            Path:
            src/main/java/hudson/plugins/parameterizedtrigger/BuildTriggerConfig.java
            http://jenkins-ci.org/commit/parameterized-trigger-plugin/f39bb4f02376b73b1a2a8e1630342727a4a92a98
            Log:
            [FIXES JENKINS-20932] Avoid NPE by checking the getLastSuccessfulBuild() for null before calling resolveProject()

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ryan Campbell Path: src/main/java/hudson/plugins/parameterizedtrigger/BuildTriggerConfig.java http://jenkins-ci.org/commit/parameterized-trigger-plugin/f39bb4f02376b73b1a2a8e1630342727a4a92a98 Log: [FIXES JENKINS-20932] Avoid NPE by checking the getLastSuccessfulBuild() for null before calling resolveProject()
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: ikedam
            Path:
            src/main/java/hudson/plugins/parameterizedtrigger/BuildTriggerConfig.java
            http://jenkins-ci.org/commit/parameterized-trigger-plugin/4f7219e2880cd4357c44f2221e5b3fd2a06525a4
            Log:
            Merge pull request #56 from recampbell/jenkins-20931

            [FIXES JENKINS-20932] Avoid NPE by checking the getLastSuccessfulBuild()...

            Compare: https://github.com/jenkinsci/parameterized-trigger-plugin/compare/0bf3fe869774...4f7219e2880c

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/parameterizedtrigger/BuildTriggerConfig.java http://jenkins-ci.org/commit/parameterized-trigger-plugin/4f7219e2880cd4357c44f2221e5b3fd2a06525a4 Log: Merge pull request #56 from recampbell/jenkins-20931 [FIXES JENKINS-20932] Avoid NPE by checking the getLastSuccessfulBuild()... Compare: https://github.com/jenkinsci/parameterized-trigger-plugin/compare/0bf3fe869774...4f7219e2880c
            Hide
            ikedam ikedam added a comment -

            Released in 2.23.

            Show
            ikedam ikedam added a comment - Released in 2.23.

              People

              • Assignee:
                recampbell Ryan Campbell
                Reporter:
                recampbell Ryan Campbell
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: