From 143bdbedd72e6d4e56ef12e75f76ff89e2a4415a Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 15 Jun 2025 21:52:52 +0100 Subject: [PATCH] Nullptr safety. (cherry picked from commit 27ac2beac5f4469c1bcad79e34977c953d019f4a) --- pcbnew/tools/pcb_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/pcb_control.cpp b/pcbnew/tools/pcb_control.cpp index f130d2a981..2e0d56e10a 100644 --- a/pcbnew/tools/pcb_control.cpp +++ b/pcbnew/tools/pcb_control.cpp @@ -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;