Skip to content

Commit ba98a43

Browse files
committed
Review comments
1 parent be554a0 commit ba98a43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/symboldatabase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8039,9 +8039,9 @@ void SymbolDatabase::setValueTypeInTokenList(bool reportDebugWarnings, Token *to
80398039
const Token* varTok = tok->astOperand2();
80408040
while (Token::simpleMatch(varTok, "["))
80418041
varTok = varTok->astOperand1();
8042-
if (Token::simpleMatch(varTok, "."))
8042+
while (Token::simpleMatch(varTok, "."))
80438043
varTok = varTok->astOperand2();
8044-
const auto* const paramVariable = varTok->variable();
8044+
const Variable* const paramVariable = varTok ? varTok->variable() : nullptr;
80458045
if (!paramVariable ||
80468046
!paramVariable->valueType() ||
80478047
!paramVariable->valueType()->container) {

0 commit comments

Comments
 (0)