diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index 19bebd103f..e3664874b9 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -135,7 +135,12 @@ Port::get_connections (std::vector & c) const return c.size(); } - return port_engine.get_connections (_port_handle, c); + if (_port_handle) { + port_engine.get_connections (_port_handle, c); + return c.size(); + } + + return 0; } int