diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index 08000d9122..5c5e3caa37 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -810,7 +810,7 @@ PortMatrix::can_add_channel_proxy (boost::weak_ptr w, DataType t) const return false; } boost::shared_ptr io = io_from_bundle (b); - return io->can_add_port (t); + return io && io->can_add_port (t); } void