diff options
-rw-r--r-- | libs/ardour/port.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index 3252134ac3..70c6a604d7 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -165,7 +165,12 @@ Port::get_connections (std::vector<std::string> & c) const return c.size(); } - return port_engine.get_connections (_port_handle, c); + if (_port_handle) { + return port_engine.get_connections (_port_handle, c); + return c.size(); + } + + return 0; } int |