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

JDKSlicer values not null safe

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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)

       

       

        Attachments

          Activity

          Show
          owood Owen Wood added a comment - https://github.com/jenkinsci/configurationslicing-plugin/pull/22
          Hide
          guysoft 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.

          Show
          guysoft 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.

            People

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

              Dates

              Created:
              Updated: