From 542f447daaba50181dc3f1af0a95a95b55419ccf Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Mon, 21 Sep 2020 12:04:41 +0100 Subject: [PATCH] DRC tool: Ensure all calls to the dialog are guarded by null checks --- pcbnew/tools/drc_tool.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/drc_tool.cpp b/pcbnew/tools/drc_tool.cpp index 3a769151df..8bd5262f58 100644 --- a/pcbnew/tools/drc_tool.cpp +++ b/pcbnew/tools/drc_tool.cpp @@ -209,10 +209,12 @@ void DRC_TOOL::RunTests( PROGRESS_REPORTER* aProgressReporter, bool aTestTracksA m_drcEngine->ClearViolationHandler(); if( m_drcDialog ) + { m_drcDialog->SetDrcRun(); - if( !netlist.IsEmpty() ) - m_drcDialog->SetFootprintTestsRun(); + if( !netlist.IsEmpty() ) + m_drcDialog->SetFootprintTestsRun(); + } commit.Push( _( "DRC" ), false );