Author: adietish
Date: 2010-12-02 11:08:12 -0500 (Thu, 02 Dec 2010)
New Revision: 27108
Modified:
branches/jbosstools-3.2.0.Beta2/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageViewLabelAndContentProvider.java
Log:
[JBIDE-7789] fixed NPE when invalid cloud is selected on startup.
Modified:
branches/jbosstools-3.2.0.Beta2/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageViewLabelAndContentProvider.java
===================================================================
---
branches/jbosstools-3.2.0.Beta2/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageViewLabelAndContentProvider.java 2010-12-02
15:59:02 UTC (rev 27107)
+++
branches/jbosstools-3.2.0.Beta2/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageViewLabelAndContentProvider.java 2010-12-02
16:08:12 UTC (rev 27108)
@@ -73,6 +73,9 @@
@Override
public Object[] getElements(Object inputElement) {
+ if (images == null) {
+ return new DeltaCloudImage[]{};
+ }
return images;
}