From 3c3d62c18a88c9a3ce8ae4d5f7a44470d302a1bf Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 8 May 2015 21:01:26 -0400 Subject: Fixed issue with crash when invalid get_connections request is made on invalid port handle. (Grygorii) --- libs/ardour/port.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libs/ardour/port.cc') 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 & 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 -- cgit v1.2.3