Author: pwang
Date: 2012-09-24 13:40:22 -0700 (Mon, 24 Sep 2012)
New Revision: 30468
Modified:
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/AbstractNetworkReader.java
Log:
Add null-pointer check
Modified:
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/AbstractNetworkReader.java
===================================================================
---
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/AbstractNetworkReader.java
2012-09-24 19:15:46 UTC (rev 30467)
+++
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/AbstractNetworkReader.java
2012-09-24 20:40:22 UTC (rev 30468)
@@ -150,6 +150,10 @@
protected void initNodeMap(CyRootNetwork rootNetwork, String
keyColName){
// Note: The keyColName should start with "shared"
+ if (rootNetwork == null){
+ return;
+ }
+
Iterator<CyNode> it = rootNetwork.getNodeList().iterator();
while (it.hasNext()){
--
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.