Author: pwang
Date: 2011-03-03 17:04:25 -0800 (Thu, 03 Mar 2011)
New Revision: 24311
Modified:
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/session/SessionReaderImpl.java
Log:
Add null pointer check when recovery vizmap and network
Modified:
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/session/SessionReaderImpl.java
===================================================================
---
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/session/SessionReaderImpl.java
2011-03-04 00:59:47 UTC (rev 24310)
+++
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/session/SessionReaderImpl.java
2011-03-04 01:04:25 UTC (rev 24311)
@@ -286,7 +286,11 @@
}
private void extractVizmapProps(InputStream is) throws Exception {
+
CyPropertyReader reader = propertyReaderMgr.getReader(is);
+ if(reader == null){
+ return;
+ }
reader.run(taskMonitor);
vizmapProps = (Properties) reader.getProperty();
}
@@ -310,6 +314,11 @@
}
private void processNetworks() throws Exception {
+
+ if (cysession.getNetworkTree() == null){
+ return;
+ }
+
for (Network curNet : cysession.getNetworkTree().getNetwork())
netMap.put(curNet.getId(), curNet);
--
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.