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

This commit is contained in:
Jeff Young 2022-02-20 16:56:53 +00:00
parent b0d7c82e64
commit df3291c59d
1 changed files with 1 additions and 1 deletions

View File

@ -1198,7 +1198,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;