Author: scooter
Date: 2010-09-16 11:22:28 -0700 (Thu, 16 Sep 2010)
New Revision: 21894
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/groups/CyGroupManager.java
Log:
Make a copy of the list to avoid concurrent modification errors
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/groups/CyGroupManager.java
===================================================================
---
cytoscape/trunk/application/src/main/java/cytoscape/groups/CyGroupManager.java
2010-09-16 16:03:26 UTC (rev 21893)
+++
cytoscape/trunk/application/src/main/java/cytoscape/groups/CyGroupManager.java
2010-09-16 18:22:28 UTC (rev 21894)
@@ -427,7 +427,7 @@
// it might be a member of
List<CyGroup> groupList = groupNode.getGroups();
if (groupList != null && groupList.size() > 0) {
- for (CyGroup group: groupList) {
+ for (CyGroup group: new
ArrayList<CyGroup>(groupList)) {
group.removeNode(groupNode);
}
}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.