Fix null pointer dereference in bundle-manager #8331

This commit is contained in:
Robin Gareus 2020-09-04 22:48:11 +02:00
parent 5361a3f5c4
commit 59d9c940d3
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -810,7 +810,7 @@ PortMatrix::can_add_channel_proxy (boost::weak_ptr<Bundle> w, DataType t) const
return false;
}
boost::shared_ptr<IO> io = io_from_bundle (b);
return io->can_add_port (t);
return io && io->can_add_port (t);
}
void