Nullptr safety.

Fixes KICAD-P7Q.
This commit is contained in:
Jeff Young
2025-08-01 15:50:51 +01:00
parent 6c6c02a329
commit ac3eac9ed0
@@ -247,7 +247,7 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testSingleLayerItemAgainstItem( BOARD_I
if( itemShape->Collide( otherShape, clearance - m_drcEpsilon, &actual, &pos ) )
{
if( m_drcEngine->IsNetTieExclusion( trackNet->GetNetCode(), layer, pos, other ) )
if( trackNet && m_drcEngine->IsNetTieExclusion( trackNet->GetNetCode(), layer, pos, other ) )
{
// Collision occurred as track was entering a pad marked as a net-tie. We
// allow these.