Author: clopes
Date: 2012-01-06 14:52:39 -0800 (Fri, 06 Jan 2012)
New Revision: 27948
Modified:
core3/impl/trunk/biopax-impl/src/main/java/org/cytoscape/biopax/internal/action/BioPaxViewTracker.java
Log:
Fixed a NPE
Modified:
core3/impl/trunk/biopax-impl/src/main/java/org/cytoscape/biopax/internal/action/BioPaxViewTracker.java
===================================================================
---
core3/impl/trunk/biopax-impl/src/main/java/org/cytoscape/biopax/internal/action/BioPaxViewTracker.java
2012-01-06 22:24:07 UTC (rev 27947)
+++
core3/impl/trunk/biopax-impl/src/main/java/org/cytoscape/biopax/internal/action/BioPaxViewTracker.java
2012-01-06 22:52:39 UTC (rev 27948)
@@ -91,8 +91,10 @@
*/
@Override
public void handleEvent(SetCurrentNetworkViewEvent e) {
+ CyNetworkView view = e.getNetworkView();
+
// update bpPanel accordingly
- if (BioPaxUtil.isBioPAXNetwork(e.getNetworkView().getModel())) {
+ if (view != null &&
BioPaxUtil.isBioPAXNetwork(view.getModel())) {
bpPanel.resetText();
}
}
--
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.