Author: adietish
Date: 2010-11-30 05:30:54 -0500 (Tue, 30 Nov 2010)
New Revision: 27021
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java
Log:
[JBIDE-7694]
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java 2010-11-30
10:30:34 UTC (rev 27020)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java 2010-11-30
10:30:54 UTC (rev 27021)
@@ -221,7 +221,7 @@
private DeltaCloud setCurrentCloud(int index) {
DeltaCloud[] clouds = getClouds();
- if (index >= clouds.length) {
+ if (index < 0 || index >= clouds.length) {
currCloud = null;
} else {
currCloud = getClouds()[index];
Show replies by date