fix return value to be a legal null shared_ptr<PortPtr>
This commit is contained in:
parent
92005cd992
commit
71e04c945f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user