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

Ivy plugin throws NPE if no project settings defined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • ivy-plugin
    • Ivy plugin 1.27
      Config File Provider plugin 2.15.4

      Jenkins LTS 2.32.1
      Linux, RHEL 6.5
      Java 8
    • 1.27.1

      When building a project which uses the Ivy plugin, if no project Ivy settings are defined it throws a NullPointerException:

      12:44:48 ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net
      12:44:48 java.lang.NullPointerException
      12:44:48 	at org.jenkinsci.plugins.configfiles.GlobalConfigFiles.getById(GlobalConfigFiles.java:99)
      12:44:48 	at org.jenkinsci.plugins.configfiles.ConfigFiles.getByIdOrNull(ConfigFiles.java:87)
      12:44:48 	at org.jenkinsci.plugins.configfiles.ConfigFiles.getByIdOrNull(ConfigFiles.java:116)
      12:44:48 	at hudson.ivy.IvyModuleSetBuild$RunnerImpl.doRun(IvyModuleSetBuild.java:358)
      12:44:48 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      12:44:48 	at hudson.model.Run.execute(Run.java:1728)
      12:44:48 	at hudson.model.Run.run(Run.java:1687)
      12:44:48 	at hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:273)
      12:44:48 	at hudson.model.ResourceController.execute(ResourceController.java:98)
      12:44:48 	at hudson.model.Executor.run(Executor.java:404)
      12:44:48 project=hudson.ivy.IvyModuleSet@36558693[devOps/tulip]
      12:44:48 project.getModules()=[]
      12:44:48 FATAL: null
      12:44:48 java.lang.NullPointerException
      12:44:48 	at org.jenkinsci.plugins.configfiles.GlobalConfigFiles.getById(GlobalConfigFiles.java:99)
      12:44:48 	at org.jenkinsci.plugins.configfiles.ConfigFiles.getByIdOrNull(ConfigFiles.java:87)
      12:44:48 	at org.jenkinsci.plugins.configfiles.ConfigFiles.getByIdOrNull(ConfigFiles.java:116)
      12:44:48 	at hudson.ivy.IvyModuleSetBuild$RunnerImpl.doRun(IvyModuleSetBuild.java:358)
      12:44:48 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      12:44:48 	at hudson.model.Run.execute(Run.java:1728)
      12:44:48 	at hudson.model.Run.run(Run.java:1687)
      12:44:48 	at hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:273)
      12:44:48 	at hudson.model.ResourceController.execute(ResourceController.java:98)
      12:44:48 	at hudson.model.Executor.run(Executor.java:404)
      

            arothian Kevin Formsma
            jamiep Jamie Penman-Smithson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: