Only update DRC progress reporter if the reporter exists

The DRC engine might not have a reporter when run headless
This commit is contained in:
Ian McInerney 2020-09-15 21:17:32 +01:00
parent c399d489ba
commit 6a7266d589
1 changed files with 2 additions and 1 deletions

View File

@ -410,7 +410,8 @@ void DRC_ENGINE::RunTests( EDA_UNITS aUnits, bool aTestTracksAgainstZones,
for( DRC_TEST_PROVIDER* provider : m_testProviders )
phases += provider->GetNumPhases();
m_progressReporter->AddPhases( phases );
if( m_progressReporter )
m_progressReporter->AddPhases( phases );
for( int ii = DRCE_FIRST; ii < DRCE_LAST; ++ii )
{