diff --git a/pcbnew/board_design_settings.cpp b/pcbnew/board_design_settings.cpp index 939e655e78..e5a8f6c820 100644 --- a/pcbnew/board_design_settings.cpp +++ b/pcbnew/board_design_settings.cpp @@ -934,8 +934,11 @@ int BOARD_DESIGN_SETTINGS::GetBiggestClearanceValue() { DRC_CONSTRAINT constraint; - m_DRCEngine->QueryWorstConstraint( DRC_CONSTRAINT_TYPE_CLEARANCE, constraint, - DRCCQ_LARGEST_MINIMUM ); + if( m_DRCEngine ) + { + m_DRCEngine->QueryWorstConstraint( DRC_CONSTRAINT_TYPE_CLEARANCE, constraint, + DRCCQ_LARGEST_MINIMUM ); + } return constraint.Value().HasMin() ? constraint.Value().Min() : 0; }