symboldatabase: Fix null pointer dereference, introduced by ee1ba85e15 (comments)
.
This commit is contained in:
parent
1ad22ae231
commit
82c963d3a2
|
@ -130,8 +130,9 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
|
||||||
// goto initial '{'
|
// goto initial '{'
|
||||||
if (!new_scope->definedType) {
|
if (!new_scope->definedType) {
|
||||||
_tokenizer->syntaxError(nullptr); // #6808
|
_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
|
// make sure we have valid code
|
||||||
if (!tok2) {
|
if (!tok2) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue