Author: ruschein
Date: 2010-02-18 10:12:09 -0800 (Thu, 18 Feb 2010)
New Revision: 19361
Modified:
coreplugins/trunk/browser/src/browser/MultiDataEditAction.java
Log:
Fixed Mantis bug #2179.
Modified: coreplugins/trunk/browser/src/browser/MultiDataEditAction.java
===================================================================
--- coreplugins/trunk/browser/src/browser/MultiDataEditAction.java
2010-02-18 00:16:48 UTC (rev 19360)
+++ coreplugins/trunk/browser/src/browser/MultiDataEditAction.java
2010-02-18 18:12:09 UTC (rev 19361)
@@ -320,10 +320,12 @@
for (Iterator i = objects.iterator(); i.hasNext();) {
GraphObject go = (GraphObject) i.next();
-
old_values.add(attrData.getAttribute(go.getIdentifier(), attributeTo));
-
attrData.getMultiHashMap().removeAllAttributeValues(go.getIdentifier(),
attributeTo);
-
- new_values.add(null);
+ final Object attr =
attrData.getAttribute(go.getIdentifier(), attributeTo);
+ if (attr != null) {
+ old_values.add(attr);
+
attrData.getMultiHashMap().removeAllAttributeValues(go.getIdentifier(),
attributeTo);
+ new_values.add(null);
+ }
}
}
--
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.