Author: jm
Date: 2012-05-02 11:54:58 -0700 (Wed, 02 May 2012)
New Revision: 29078

Modified:
   
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/group/UnGroupNodesTaskFactoryImpl.java
Log:
Fixes #933: Added null check

Modified: 
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/group/UnGroupNodesTaskFactoryImpl.java
===================================================================
--- 
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/group/UnGroupNodesTaskFactoryImpl.java
    2012-05-02 18:52:19 UTC (rev 29077)
+++ 
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/group/UnGroupNodesTaskFactoryImpl.java
    2012-05-02 18:54:58 UTC (rev 29078)
@@ -56,6 +56,10 @@
        }
 
        public boolean isReady(View<CyNode> nodeView, CyNetworkView netView) {
+               if (nodeView == null || netView == null) {
+                       return false;
+               }
+               
                List<CyNode> nodeList = new ArrayList<CyNode>();
                nodeList.add(nodeView.getModel());
 
@@ -66,6 +70,10 @@
        }
 
        public boolean isReady(CyNetworkView netView) {
+               if (netView == null) {
+                       return false;
+               }
+               
                // Get all of the selected nodes
                CyNetwork net = netView.getModel();
                final List<CyNode> selNodes = CyTableUtil.getNodesInState(net, 
CyNetwork.SELECTED, true);

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