From c702e15a3fc9299499d7e362b180bc3ba778bbb4 Mon Sep 17 00:00:00 2001 From: airskywater <96818686+airskywater@users.noreply.github.com> Date: Sat, 24 Sep 2022 12:03:44 +0800 Subject: Add more sanity check for pointers --- common/kernel/timing.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'common') diff --git a/common/kernel/timing.cc b/common/kernel/timing.cc index 66de8dfc..a9f64afa 100644 --- a/common/kernel/timing.cc +++ b/common/kernel/timing.cc @@ -299,6 +299,7 @@ void TimingAnalyser::identify_related_domains() std::function &, delay_t)> find_net_drivers = [&](const NetInfo *ni, dict &drivers, delay_t delay_acc) { // Get driving cell and port + if (nullptr == ni) return; const CellInfo *cell = ni->driver.cell; if (nullptr == cell) return; -- cgit v1.2.3