diff --git a/common/title_block.cpp b/common/title_block.cpp index f5fc324ccf..aee08c005b 100644 --- a/common/title_block.cpp +++ b/common/title_block.cpp @@ -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( "}" ) )