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

Fix NPE when calculating culprits

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins 2.60.1
    • Similar Issues:

      Description

      In the changes introduced in 977f922136e8bcdad42ad1448df45a36b2e64f68, it appears that a NPE was introduced here as p can be null.

      FATAL: null
      java.lang.NullPointerException
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:340)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:625)
      	at hudson.model.Run.execute(Run.java:1760)
      	at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:405)
      

        Attachments

          Activity

          jcmoore Curt Moore created issue -
          oleg_nenashev Oleg Nenashev made changes -
          Field Original Value New Value
          Assignee Curt Moore [ jcmoore ]
          oleg_nenashev Oleg Nenashev made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          oleg_nenashev Oleg Nenashev made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          jcmoore Curt Moore made changes -
          Labels lts-candidate
          oleg_nenashev Oleg Nenashev made changes -
          Resolution Fixed [ 1 ]
          Status In Review [ 10005 ] Resolved [ 5 ]
          oleg_nenashev Oleg Nenashev made changes -
          Labels lts-candidate
          jglick Jesse Glick made changes -
          Labels 2.60.3-fixed

            People

            Assignee:
            jcmoore Curt Moore
            Reporter:
            jcmoore Curt Moore
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: