Skip to content

Commit 165d2e6

Browse files
authored
Merge pull request The-OpenROAD-Project#6857 from The-OpenROAD-Project-staging/psm-REVERSE_INULL
psm: fix Coverity REVERSE_INULL
2 parents 6f114e4 + 3e6ee0b commit 165d2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/psm/src/heatMap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ IRDropDataSource::IRDropDataSource(PDNSim* psm,
120120

121121
void IRDropDataSource::setBlock(odb::dbBlock* block)
122122
{
123-
if (block->getParent()) {
123+
if (block && block->getParent()) {
124124
return; // not the top block so ignore it
125125
}
126126
gui::HeatMapDataSource::setBlock(block);

0 commit comments

Comments
 (0)