Fix nullptr error (no router tool in footprint editor).
(cherry picked from commit df3291c59d
)
This commit is contained in:
parent
15fd0aa989
commit
b24f51908b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue