Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-03-27 18:26:57 +0000
committerEugene Tarassov2012-03-27 18:26:57 +0000
commit2ee4e42734f8ead6ca355523a1f378f3865d29fd (patch)
tree6ad91e20a5f083382c60fc0b92207f64088a9915
parent29e076228463abd7c37e85fb5013618b8dc5e228 (diff)
downloadorg.eclipse.tcf-2ee4e42734f8ead6ca355523a1f378f3865d29fd.tar.gz
org.eclipse.tcf-2ee4e42734f8ead6ca355523a1f378f3865d29fd.tar.xz
org.eclipse.tcf-2ee4e42734f8ead6ca355523a1f378f3865d29fd.zip
Bug 375455 - [launch] ArrayIndexOutOfBoundsException in TCFTargetTab.
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFTargetTab.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFTargetTab.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFTargetTab.java
index a731ce692..4044f9ece 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFTargetTab.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFTargetTab.java
@@ -829,7 +829,7 @@ public class TCFTargetTab extends AbstractLaunchConfigurationTab {
ArrayList<PeerInfo> lst = null;
if (parent == peer_info) {
lst = filterPeerList(parent, expanded);
- peer_tree.setItemCount(lst.size());
+ peer_tree.setItemCount(lst.size() > 0 ? lst.size() : 1);
items = peer_tree.getItems();
}
else {

Back to the top