Author: scooter
Date: 2010-09-15 15:01:07 -0700 (Wed, 15 Sep 2010)
New Revision: 21878
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/data/readers/XGMMLReader.java
Log:
Need to make sure to check for the existence of the group local attribute
before trying to read it.
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/data/readers/XGMMLReader.java
===================================================================
---
cytoscape/trunk/application/src/main/java/cytoscape/data/readers/XGMMLReader.java
2010-09-15 20:24:29 UTC (rev 21877)
+++
cytoscape/trunk/application/src/main/java/cytoscape/data/readers/XGMMLReader.java
2010-09-15 22:01:07 UTC (rev 21878)
@@ -696,7 +696,9 @@
for (CyNode groupNode : groupMap.keySet()) {
List<CyNode> childList =
groupMap.get(groupNode);
viewer =
nodeAttributes.getStringAttribute(groupNode.getIdentifier(),
CyGroup.GROUP_VIEWER_ATTR);
- boolean isLocal =
nodeAttributes.getBooleanAttribute(groupNode.getIdentifier(),
CyGroup.GROUP_LOCAL_ATTR);
+ boolean isLocal = false;
+ if
(nodeAttributes.hasAttribute(groupNode.getIdentifier(),
CyGroup.GROUP_LOCAL_ATTR))
+ isLocal =
nodeAttributes.getBooleanAttribute(groupNode.getIdentifier(),
CyGroup.GROUP_LOCAL_ATTR);
CyNetwork groupNetwork = 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.