Author: kono
Date: 2011-09-14 12:25:20 -0700 (Wed, 14 Sep 2011)
New Revision: 26797
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/visual/ui/MappingKeyFactory.java
Log:
Fixed to avoid NPE for null visual property value.
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/visual/ui/MappingKeyFactory.java
===================================================================
---
cytoscape/trunk/application/src/main/java/cytoscape/visual/ui/MappingKeyFactory.java
2011-09-14 16:48:30 UTC (rev 26796)
+++
cytoscape/trunk/application/src/main/java/cytoscape/visual/ui/MappingKeyFactory.java
2011-09-14 19:25:20 UTC (rev 26797)
@@ -68,7 +68,9 @@
final Set<Object> mappedKeys = new TreeSet<Object>();
for (final Object attrValue : id2AttrMap.values()) {
-
+ if(attrValue == null)
+ continue;
+
if (attrValue instanceof List<?>) {
// This is list, but contents of list is unknown
List<?> list = (List<?>) attrValue;
--
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.