pcbnew: avoid segfault reported on certain OSX builds

Fixes: lp:1732274
* https://bugs.launchpad.net/kicad/+bug/1732274
This commit is contained in:
Tomasz Włostowski 2018-01-02 00:47:46 +01:00
parent aab4c59615
commit 44d4559f84
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ bool ROUTER::RoutingInProgress() const
const ITEM_SET ROUTER::QueryHoverItems( const VECTOR2I& aP )
{
if( m_state == IDLE )
if( m_state == IDLE || m_placer == nullptr )
return m_world->HitTest( aP );
else
return m_placer->CurrentNode()->HitTest( aP );