Skip to content

Commit 989b78c

Browse files
committed
rcx: guard against null block in setBlockFromChip
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
1 parent 982dc13 commit 989b78c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/rcx/src/extmain.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ void extMain::setBlockFromChip(odb::dbChip* chip)
400400

401401
_tech = chip->getTech();
402402
_block = chip->getBlock();
403+
404+
if (!_block) {
405+
logger_->error(RCX, 14, "Could not get the block from the chip.");
406+
}
407+
403408
_blockId = _block->getId();
404409
_prevControl = _block->getExtControl();
405410
_block->setExtmi(this);

0 commit comments

Comments
 (0)