Fix null pointer use

This commit is contained in:
jean-pierre charras 2020-09-15 20:01:10 +02:00
parent fd4a96d8be
commit 652a59b781
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ bool DRC_RULE_CONDITION::Compile( REPORTER* aReporter, int aSourceLine, int aSou
first,
rest );
aReporter->Report( msg, RPT_SEVERITY_ERROR );
if( aReporter )
aReporter->Report( msg, RPT_SEVERITY_ERROR );
};
PCB_EXPR_COMPILER compiler;