aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorairskywater <96818686+airskywater@users.noreply.github.com>2022-09-24 12:03:44 +0800
committerGitHub <noreply@github.com>2022-09-24 12:03:44 +0800
commitc702e15a3fc9299499d7e362b180bc3ba778bbb4 (patch)
treeef5ef98f733fad7b8a49702cc19fcaa8c023ce58 /common
parent78f67ae5bcf62138445cf25d5f1e21dd3f7caf66 (diff)
downloadnextpnr-c702e15a3fc9299499d7e362b180bc3ba778bbb4.tar.gz
nextpnr-c702e15a3fc9299499d7e362b180bc3ba778bbb4.tar.bz2
nextpnr-c702e15a3fc9299499d7e362b180bc3ba778bbb4.zip
Add more sanity check for pointers
Diffstat (limited to 'common')
-rw-r--r--common/kernel/timing.cc1
1 files changed, 1 insertions, 0 deletions
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<void(const NetInfo *, dict<IdString, delay_t> &, delay_t)> find_net_drivers =
[&](const NetInfo *ni, dict<IdString, delay_t> &drivers, delay_t delay_acc) {
// Get driving cell and port
+ if (nullptr == ni) return;
const CellInfo *cell = ni->driver.cell;
if (nullptr == cell) return;