summaryrefslogtreecommitdiffstats
path: root/src/progs/gtk/PatchController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/gtk/PatchController.cpp')
-rw-r--r--src/progs/gtk/PatchController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/progs/gtk/PatchController.cpp b/src/progs/gtk/PatchController.cpp
index 10f2f639..cbc8f626 100644
--- a/src/progs/gtk/PatchController.cpp
+++ b/src/progs/gtk/PatchController.cpp
@@ -431,7 +431,7 @@ PatchController::add_node(CountedPtr<NodeModel> nm)
// FIXME: Should PatchController really be responsible for creating these?
NodeController* nc = NULL;
- if (nm->plugin()->type() == PluginModel::DSSI)
+ if (nm->plugin() && nm->plugin()->type() == PluginModel::DSSI)
nc = new DSSIController(nm);
else
nc = new NodeController(nm);
@@ -439,7 +439,7 @@ PatchController::add_node(CountedPtr<NodeModel> nm)
assert(nc != NULL);
assert(nm->controller() == nc);
- // Check if this is a bridge node
+ // Check if this is a bridge node - FIXME: remove this
CountedPtr<PortModel> pm = patch_model()->get_port(nm->path().name());
if (pm) {
cerr << "Bridge node." << endl;