Plugin cannot handle images with no name

XMLWordPrintable

      For unknown reasons the Openstack cloud I use has a public image with no name. It does have an ID ect but the name attribute is null. When attempting to configure the cloud the following is thrown.

      java.lang.NullPointerException
      	at jenkins.plugins.openstack.compute.JCloudsSlaveTemplate$DescriptorImpl$2.compare(JCloudsSlaveTemplate.java:478)
      	at jenkins.plugins.openstack.compute.JCloudsSlaveTemplate$DescriptorImpl$2.compare(JCloudsSlaveTemplate.java:475)
      	at java.util.TimSort.binarySort(TimSort.java:292)
      	at java.util.TimSort.sort(TimSort.java:235)
      	at java.util.Arrays.sort(Arrays.java:1512)
      	at java.util.ArrayList.sort(ArrayList.java:1454)
      	at java.util.Collections.sort(Collections.java:175)
      	at jenkins.plugins.openstack.compute.JCloudsSlaveTemplate$DescriptorImpl.doFillImageIdItems(JCloudsSlaveTemplate.java:377)
      

      I haven't been able to find out one way or another if name is a required attribute however it does look like other clients substitute the id for name if it's missing. It is possible to manually configure the templates via config.xml

            Assignee:
            Oliver Gondža
            Reporter:
            Christopher Bayliss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: