diff --git a/pcbnew/router/router_preview_item.cpp b/pcbnew/router/router_preview_item.cpp index ac344ae6de..83748d7fc1 100644 --- a/pcbnew/router/router_preview_item.cpp +++ b/pcbnew/router/router_preview_item.cpp @@ -130,8 +130,11 @@ const BOX2I ROUTER_PREVIEW_ITEM::ViewBBox() const switch( m_type ) { case PR_SHAPE: - bbox = m_shape->BBox(); - bbox.Inflate( m_width / 2 ); + if( m_shape ) + { + bbox = m_shape->BBox(); + bbox.Inflate( m_width / 2 ); + } return bbox; case PR_POINT: