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

NPE when Process cleaner username in cfg. isn't populated

XMLWordPrintable

      NPE occurred when username in Process cleaner on Jenkins configuration page isn't populated.

      Potentially affected method createProcessTreeFor() in these classes:

      • PsBasedHPUXProcessTree
      • PsBasedUnixProcessTree
      • PsBasedWinProcessTree

      Stack trace:

      java.lang.NullPointerException
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:1010)
              at org.jenkinsci.plugins.proccleaner.PsBasedUnixProcessTree.createProcessTreeFor(PsBasedUnixProcessTree.java:41)
              at org.jenkinsci.plugins.proccleaner.PsKiller.kill(PsKiller.java:49)
              at org.jenkinsci.plugins.proccleaner.PsCleaner.clean(PsCleaner.java:69)
              at org.jenkinsci.plugins.proccleaner.ProcCleaner$CleanRequest.call(ProcCleaner.java:122)
              at org.jenkinsci.plugins.proccleaner.ProcCleaner$CleanRequest.call(ProcCleaner.java:111)
              at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
              at org.jenkinsci.plugins.proccleaner.ProcCleaner.performCleanup(ProcCleaner.java:100)
              at org.jenkinsci.plugins.proccleaner.PostBuildCleanup.perform(PostBuildCleanup.java:54)
              at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
              at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
              at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
              at hudson.model.Build$BuildExecution.post2(Build.java:183)
              at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
              at hudson.model.Run.execute(Run.java:1527)
              at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
              at hudson.model.ResourceController.execute(ResourceController.java:88)
              at hudson.model.Executor.run(Executor.java:236)
      

            pajasoft Pavel Janoušek
            pajasoft Pavel Janoušek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: