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

Build Step Failing with error java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "hudson.tools.ToolInstallation.getName()" is null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • None
    • Jenkins 2.431
      Oracle Linux 8

      After upgrading to 2.431, the SonnarScanner step is failing with the error:

      org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: dd2b66f6-cf35-4d4c-8a41-75f9c54a84c9 java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "hudson.tools.ToolInstallation.getName()" is null at org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:155) at org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:138) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840)

            Unassigned Unassigned
            lbethancourt Luis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: