From df3291c59d2ba334cf384f6021754a18fa4aed4c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 20 Feb 2022 16:56:53 +0000 Subject: [PATCH] Fix nullptr error (no router tool in footprint editor). --- 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 6148b361fc..ab37b1009e 100644 --- a/pcbnew/tools/pcb_control.cpp +++ b/pcbnew/tools/pcb_control.cpp @@ -1198,7 +1198,7 @@ int PCB_CONTROL::UpdateMessagePanel( const TOOL_EVENT& aEvent ) ROUTER_TOOL* routerTool = m_toolMgr->GetTool(); PCB_SELECTION& selection = selTool->GetSelection(); - if( routerTool->RoutingInProgress() ) + if( routerTool && routerTool->RoutingInProgress() ) { routerTool->UpdateMessagePanel(); return 0;