symboldatabase: Fix null pointer dereference, introduced by ee1ba85e15 (comments).

This commit is contained in:
orbitcowboy 2018-02-02 08:45:13 +01:00
parent 1ad22ae231
commit 82c963d3a2
1 changed files with 2 additions and 1 deletions

View File

@ -130,8 +130,9 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
// goto initial '{'
if (!new_scope->definedType) {
_tokenizer->syntaxError(nullptr); // #6808
tok2 = new_scope->definedType->initBaseInfo(tok, tok2);
break;
}
tok2 = new_scope->definedType->initBaseInfo(tok, tok2);
// make sure we have valid code
if (!tok2) {
break;