Author: mes
Date: 2009-12-01 16:58:48 -0800 (Tue, 01 Dec 2009)
New Revision: 18640
Modified:
cytoscape/trunk/src/cytoscape/util/NestedNetworkViewUpdater.java
Log:
fixed a null pointer exception
Modified: cytoscape/trunk/src/cytoscape/util/NestedNetworkViewUpdater.java
===================================================================
--- cytoscape/trunk/src/cytoscape/util/NestedNetworkViewUpdater.java
2009-12-02 01:20:01 UTC (rev 18639)
+++ cytoscape/trunk/src/cytoscape/util/NestedNetworkViewUpdater.java
2009-12-02 00:58:48 UTC (rev 18640)
@@ -32,7 +32,7 @@
final boolean created =
evt.getPropertyName().equals(CytoscapeDesktop.NETWORK_VIEW_CREATED);
final CyNetworkView view = (CyNetworkView)
evt.getNewValue();
final List<String> parents =
Cytoscape.getNetworkAttributes().getListAttribute(view.getNetwork().getIdentifier(),
CyNode.PARENT_NODES_ATTR);
- if (parents.isEmpty()) {
+ if (parents == null || parents.isEmpty()) {
return; // Not a nested network.
}
--
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.