Safety: I saw IOOBE, assume concurrency reasons
diff --git a/plugins/org.eclipse.objectteams.otdt.debug.ui/src/org/eclipse/objectteams/otdt/debug/ui/internal/model/OTDebugElementsContainerContentProvider.java b/plugins/org.eclipse.objectteams.otdt.debug.ui/src/org/eclipse/objectteams/otdt/debug/ui/internal/model/OTDebugElementsContainerContentProvider.java
index 3438bc0..7394e85 100644
--- a/plugins/org.eclipse.objectteams.otdt.debug.ui/src/org/eclipse/objectteams/otdt/debug/ui/internal/model/OTDebugElementsContainerContentProvider.java
+++ b/plugins/org.eclipse.objectteams.otdt.debug.ui/src/org/eclipse/objectteams/otdt/debug/ui/internal/model/OTDebugElementsContainerContentProvider.java
@@ -62,7 +62,8 @@
         OTDebugElementsContainer container = (OTDebugElementsContainer) parent;
         if(container.hasTeamInstances())
         {
-        	ArrayList<TeamInstance> teamInstances = container.getTeamInstances();
+        	ArrayList<TeamInstance> teamInstances = new ArrayList<>(container.getTeamInstances());
+        	length = Math.min(length, teamInstances.size()-index);
         	Object[] result= new Object[length];
         	for (int i=0; i<length; i++)
         		result[i]= teamInstances.get(index+i);