nullptr safety (necessary during startup before project exists)

Fixes https://gitlab.com/kicad/code/kicad/issues/13608
This commit is contained in:
Jeff Young 2023-01-20 19:27:44 +00:00
parent 2367c5cf1b
commit b0ba898a27
1 changed files with 2 additions and 1 deletions

View File

@ -151,7 +151,8 @@ bool TITLE_BLOCK::TextVarResolver( wxString* aToken, const PROJECT* aProject ) c
if( tokenUpdated )
{
*aToken = ExpandTextVars( *aToken, aProject );
if( aProject )
*aToken = ExpandTextVars( *aToken, aProject );
// This is the default fallback, so don't claim we resolved it
if( *aToken == wxT( "${" ) + originalToken + wxT( "}" ) )