Author: apico
Date: 2011-05-06 15:24:06 -0700 (Fri, 06 May 2011)
New Revision: 24956
Modified:
csplugins/trunk/ucsf/scooter/metaNodePlugin2/src/metaNodePlugin2/view/ViewUtils.java
Log:
handles additional null case. Resolves NPE when creating network from a group
with a child that has not previously had a view.
Modified:
csplugins/trunk/ucsf/scooter/metaNodePlugin2/src/metaNodePlugin2/view/ViewUtils.java
===================================================================
---
csplugins/trunk/ucsf/scooter/metaNodePlugin2/src/metaNodePlugin2/view/ViewUtils.java
2011-05-06 22:21:46 UTC (rev 24955)
+++
csplugins/trunk/ucsf/scooter/metaNodePlugin2/src/metaNodePlugin2/view/ViewUtils.java
2011-05-06 22:24:06 UTC (rev 24956)
@@ -363,7 +363,7 @@
*/
private static void setPosition(CyNode node, CyNetworkView view,
Dimension position) {
NodeView nView = view.getNodeView(node);
- if (nView == null)
+ if (nView == null || position == null)
return;
nView.setXPosition(position.getWidth());
nView.setYPosition(position.getHeight());
--
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.