Skip to content

Commit 4d4004b

Browse files
committed
Fixed an exception occurring on right-click in Cy 3.10.3
1 parent affef4e commit 4d4004b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

dist/ProteoVisualizer-0.0.2.jar

8 Bytes
Binary file not shown.

src/main/java/dk/ku/cpr/proteoVisualizer/internal/tasks/ChangeGroupReprTaskFactory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ public boolean isReady(View<CyNode> nodeView, CyNetworkView networkView) {
4343
CyNode groupNode = nodeView.getModel();
4444
CyNetwork net = networkView.getModel();
4545
// check if proteovis network and if group node
46-
if (net != null && net.getRow(net).get(SharedProperties.COLLAPSED, Boolean.class)
46+
if (net != null
47+
&& net.getRow(net).get(SharedProperties.COLLAPSED, Boolean.class) != null
48+
&& net.getRow(net).get(SharedProperties.COLLAPSED, Boolean.class)
4749
&& groupManager.getGroup(groupNode, networkView.getModel()) != null)
4850
return true;
4951
return false;

0 commit comments

Comments
 (0)