Fix a Coverity warning (non tested pointers, really a bug)

This commit is contained in:
jean-pierre charras 2021-09-20 09:13:51 +02:00
parent 347e6f914d
commit 8848f7158d
2 changed files with 4 additions and 2 deletions

View File

@ -149,7 +149,8 @@ void EXCELLON_WRITER::CreateDrillandMapFilesSet( const wxString& aPlotDirectory,
if( aGenMap )
CreateMapFilesSet( aPlotDirectory, aReporter );
aReporter->ReportTail( _( "Done." ), RPT_SEVERITY_INFO );
if( aReporter )
aReporter->ReportTail( _( "Done." ), RPT_SEVERITY_INFO );
}

View File

@ -120,7 +120,8 @@ void GERBER_WRITER::CreateDrillandMapFilesSet( const wxString& aPlotDirectory, b
if( aGenMap )
CreateMapFilesSet( aPlotDirectory, aReporter );
aReporter->ReportTail( _( "Done." ), RPT_SEVERITY_INFO );
if( aReporter )
aReporter->ReportTail( _( "Done." ), RPT_SEVERITY_INFO );
}