DRC tool: Ensure all calls to the dialog are guarded by null checks

This commit is contained in:
Ian McInerney 2020-09-21 12:04:41 +01:00
parent 6020b70596
commit 542f447daa
1 changed files with 4 additions and 2 deletions

View File

@ -209,10 +209,12 @@ void DRC_TOOL::RunTests( PROGRESS_REPORTER* aProgressReporter, bool aTestTracksA
m_drcEngine->ClearViolationHandler(); m_drcEngine->ClearViolationHandler();
if( m_drcDialog ) if( m_drcDialog )
{
m_drcDialog->SetDrcRun(); m_drcDialog->SetDrcRun();
if( !netlist.IsEmpty() ) if( !netlist.IsEmpty() )
m_drcDialog->SetFootprintTestsRun(); m_drcDialog->SetFootprintTestsRun();
}
commit.Push( _( "DRC" ), false ); commit.Push( _( "DRC" ), false );