13
0

fix return value to be a legal null shared_ptr<PortPtr>

This commit is contained in:
Paul Davis 2020-04-07 17:18:10 -06:00
parent 92005cd992
commit 71e04c945f

View File

@ -192,7 +192,7 @@ protected:
boost::shared_ptr<PortMap> p = _portmap.reader ();
PortMap::const_iterator it = p->find (port_name);
if (it == p->end ()) {
return NULL;
return BackendPortPtr();
}
return (*it).second;
}