Fix nullptr error (no router tool in footprint editor).

(cherry picked from commit df3291c59d)
This commit is contained in:
Jeff Young 2022-02-20 16:56:53 +00:00
parent 15fd0aa989
commit b24f51908b
1 changed files with 1 additions and 1 deletions

View File

@ -1197,7 +1197,7 @@ int PCB_CONTROL::UpdateMessagePanel( const TOOL_EVENT& aEvent )
ROUTER_TOOL* routerTool = m_toolMgr->GetTool<ROUTER_TOOL>();
PCB_SELECTION& selection = selTool->GetSelection();
if( routerTool->RoutingInProgress() )
if( routerTool && routerTool->RoutingInProgress() )
{
routerTool->UpdateMessagePanel();
return 0;