From 44d4559f84b8b4c3a77c09b388b060be72a22484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Tue, 2 Jan 2018 00:47:46 +0100 Subject: [PATCH] pcbnew: avoid segfault reported on certain OSX builds Fixes: lp:1732274 * https://bugs.launchpad.net/kicad/+bug/1732274 --- pcbnew/router/pns_router.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/router/pns_router.cpp b/pcbnew/router/pns_router.cpp index d7b6c544e8..64762ee8e7 100644 --- a/pcbnew/router/pns_router.cpp +++ b/pcbnew/router/pns_router.cpp @@ -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 );