13
0

Fixed issue with crash when invalid get_connections request is made on invalid port handle. (Grygorii)

This commit is contained in:
Paul Davis 2015-05-08 21:01:26 -04:00
parent 32224ee608
commit 3c3d62c18a

View File

@ -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