If you create a matrix project and start to build it, but then kill the execution before all the configurations have really run, and then call Queue.schedule on one of these configurations, you can get an exception:

      java.lang.NullPointerException
      	at hudson.matrix.MatrixConfiguration.newBuild(MatrixConfiguration.java:240)
      	at hudson.matrix.MatrixConfiguration.newBuild(MatrixConfiguration.java:70)
      	at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1305)
      	at hudson.model.AbstractProject.createExecutable(AbstractProject.java:140)
      	at hudson.model.Executor.run(Executor.java:212)
      

      Here MatrixBuild lb is null.

          [JENKINS-17728] NPE from MatrixConfiguration.newBuild

          Jesse Glick created issue -
          Jesse Glick made changes -
          Labels Original: exception matrix New: exception lts-candidate matrix
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-15356 [ JENKINS-15356 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-16276 [ JENKINS-16276 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-15199 [ JENKINS-15199 ]
          Jesse Glick made changes -
          Labels Original: exception lts-candidate matrix New: 1.509.2-fixed exception matrix
          Oleg Nenashev made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Jesse Glick made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 148908 ] New: JNJira + In-Review [ 192936 ]

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: