diff --git a/network/Network.cc b/network/Network.cc index e282e114..86f173b2 100644 --- a/network/Network.cc +++ b/network/Network.cc @@ -120,7 +120,11 @@ Network::libertyCell(const Instance *instance) const LibertyPort * Network::libertyPort(const Pin *pin) const { - return libertyPort(port(pin)); + Port *port = this->port(pin); + if (port) + return libertyPort(port); + else + return nullptr; } bool