Author: scooter
Date: 2010-12-28 15:44:07 -0800 (Tue, 28 Dec 2010)
New Revision: 23272

Modified:
   cytoscape/trunk/application/src/main/java/cytoscape/Cytoscape.java
Log:
Added fix for bug 2424 by firing SESSION_LOADED when Cytoscape.createSession is 
called.


Modified: cytoscape/trunk/application/src/main/java/cytoscape/Cytoscape.java
===================================================================
--- cytoscape/trunk/application/src/main/java/cytoscape/Cytoscape.java  
2010-12-28 18:37:30 UTC (rev 23271)
+++ cytoscape/trunk/application/src/main/java/cytoscape/Cytoscape.java  
2010-12-28 23:44:07 UTC (rev 23272)
@@ -1955,6 +1955,9 @@
                firePropertyChange(ATTRIBUTES_CHANGED, null, null);
                cytoscapeRootGraph = null;
                cytoscapeRootGraph = new CytoscapeFingRootGraph();
+               // We need to fire SESSION_LOADED, but to avoid NPE, we'll 
provide
+               // a null network list
+               Cytoscape.firePropertyChange(Cytoscape.SESSION_LOADED, null, 
new ArrayList<CyNetwork>());
                logger.info("Cytoscape Session Initialized.");
                System.gc();
        }

-- 
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.

Reply via email to