From e7bffbfef5def47f333f365774d62c75d5a61503 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Mon, 29 Sep 2025 21:02:17 -0700 Subject: [PATCH] PropActivityVisitor::visit null port check PR 301 Signed-off-by: James Cherry --- power/Power.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/power/Power.cc b/power/Power.cc index 7dd2ada0..dbf55a27 100644 --- a/power/Power.cc +++ b/power/Power.cc @@ -494,7 +494,8 @@ PropActivityVisitor::visit(Vertex *vertex) LibertyCell *test_cell = port->libertyCell()->testCell(); if (test_cell) port = test_cell->findLibertyPort(port->name()); - + } + if (port) { FuncExpr *func = port->function(); if (func) { PwrActivity activity = power_->evalActivity(func, inst);