Nullptr safety.

(cherry picked from commit 27ac2beac5)
This commit is contained in:
Jeff Young
2025-07-08 08:44:21 +01:00
parent 3748df90e4
commit 143bdbedd7
+1 -1
View File
@@ -1773,7 +1773,7 @@ int PCB_CONTROL::UpdateMessagePanel( const TOOL_EVENT& aEvent )
}
}
if( ( a->HasHole() || b->HasHole() ) )
if( a && b && ( a->HasHole() || b->HasHole() ) )
{
PCB_LAYER_ID active = m_frame->GetActiveLayer();
PCB_LAYER_ID layer = UNDEFINED_LAYER;