Add missing null check PVS V595

This commit is contained in:
Marek Roszko 2022-02-05 11:25:09 -05:00
parent 8588bea4b2
commit 193dee11e8
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ void DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone( BOARD_ITEM* aItem,
} }
} }
if( zoneTree->QueryColliding( itemBBox, itemShape.get(), aLayer, if( zoneTree && zoneTree->QueryColliding( itemBBox, itemShape.get(), aLayer,
std::max( 0, clearance - m_drcEpsilon ), &actual, &pos ) ) std::max( 0, clearance - m_drcEpsilon ), &actual, &pos ) )
{ {
std::shared_ptr<DRC_ITEM> drce = DRC_ITEM::Create( DRCE_CLEARANCE ); std::shared_ptr<DRC_ITEM> drce = DRC_ITEM::Create( DRCE_CLEARANCE );