From 193dee11e8c7d85de4c1bbb5ca7bb4044975e2c0 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sat, 5 Feb 2022 11:25:09 -0500 Subject: [PATCH] Add missing null check PVS V595 --- pcbnew/drc/drc_test_provider_copper_clearance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/drc/drc_test_provider_copper_clearance.cpp b/pcbnew/drc/drc_test_provider_copper_clearance.cpp index a94aab3085..6aa2783592 100644 --- a/pcbnew/drc/drc_test_provider_copper_clearance.cpp +++ b/pcbnew/drc/drc_test_provider_copper_clearance.cpp @@ -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::shared_ptr drce = DRC_ITEM::Create( DRCE_CLEARANCE );