1. Add a JDK in Global Tool Configuration (total 1)
      2. Add a job (that uses it)
      3. Edit Configuration Slicing - JDK per project
      4. Remove the JDK from the Configured Value text area
      5. Save

      Results in Angry Butler. The root cause is a NullPointerException:

       

      Caused by: java.lang.NullPointerException
      at hudson.model.AbstractProject.setJDK(AbstractProject.java:944)
      at configurationslicing.jdk.JdkSlicer$JdkSlicerSpec.setValues(JdkSlicer.java:67)
      at configurationslicing.jdk.JdkSlicer$JdkSlicerSpec.setValues(JdkSlicer.java:26)
      at configurationslicing.UnorderedStringSlicer.transform(UnorderedStringSlicer.java:100)
      at configurationslicing.UnorderedStringSlicer.transform(UnorderedStringSlicer.java:6)
      at configurationslicing.ConfigurationSlicing$SliceExecutor.transform(ConfigurationSlicing.java:136)
      at configurationslicing.ConfigurationSlicing$SliceExecutor.doSliceconfigSubmit(ConfigurationSlicing.java:180)

       

       

          [JENKINS-48738] JDKSlicer values not null safe

          Owen Wood added a comment -

          Owen Wood added a comment - https://github.com/jenkinsci/configurationslicing-plugin/pull/22

          Guy Sheffer added a comment -

          Hey, adopted this plugin, this PR conflicts now, any change you can fix it so I can merge it? I am not an expert on Java and I don't want to break anything.
          There is a new version coming out now that I got this compiling. So it would be great if you could.

          Guy Sheffer added a comment - Hey, adopted this plugin, this PR conflicts now, any change you can fix it so I can merge it? I am not an expert on Java and I don't want to break anything. There is a new version coming out now that I got this compiling. So it would be great if you could.

            owood Owen Wood
            owood Owen Wood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: