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

NPE for cancelled pipeline run (context id is null)

XMLWordPrintable

      I get the following NPE for a cancelled pipeline run:

      java.lang.NullPointerException
              at org.jenkins.plugins.statistics.gatherer.listeners.QueueStatsListener.onLeft(QueueStatsListener.java:221)
              at hudson.model.Queue$LeftItem.enter(Queue.java:2756)
              at hudson.model.Queue$Item.cancel(Queue.java:2344)
              at hudson.model.Queue.cancel(Queue.java:750)
              at org.jenkinsci.plugins.workflow.support.pickles.ExecutorPickle$1.cancel(ExecutorPickle.java:170)
              at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.interrupt(CpsFlowExecution.java:1159)
              at org.jenkinsci.plugins.workflow.job.WorkflowRun$2$1.run(WorkflowRun.java:378)
              at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)

            lucamilanesio Luca Domenico Milanesio
            getrostt Tobias Getrost
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: