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