Commit b50d2bb2 authored by Philipp Spohr's avatar Philipp Spohr
Browse files

CrashFix

parent 3313ebd0
......@@ -176,7 +176,9 @@ public class YoshikoCluster {
public void delete() {
if (subnet != null) {
CyCore.networkManager.destroyNetwork(subnet);
if (CyCore.networkManager.networkExists(subnet.hashCode())) {
CyCore.networkManager.destroyNetwork(subnet);
}
}
}
......
......@@ -161,7 +161,7 @@ NetworkAboutToBeDestroyedListener
@Override
public void actionPerformed(ActionEvent e) {
deleteSolution();
deleteResult();
}
});
......@@ -214,7 +214,7 @@ NetworkAboutToBeDestroyedListener
CyCore.registrar.registerService(this, NetworkAboutToBeDestroyedListener.class, new Properties());
}
public void deleteSolution() {
public void deleteResult() {
int dialogResult = JOptionPane.showConfirmDialog (
null,
......
......@@ -282,7 +282,7 @@ public class AlgorithmTask extends AbstractTask implements ObservableTask {
}
//Delete (incomplete) c_result panel
if (resultPanel != null) {
resultPanel.deleteSolution();
resultPanel.deleteResult();
}
super.cancel();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment