SymbolDatabase: Add null pointer check for ast operand for '(' token
This commit is contained in:
parent
506a952ad2
commit
1abf70a7cb
|
@ -5559,7 +5559,7 @@ void SymbolDatabase::setValueTypeInTokenList(bool reportDebugWarnings)
|
||||||
// function style cast
|
// function style cast
|
||||||
else if (tok->previous() && tok->previous()->isStandardType()) {
|
else if (tok->previous() && tok->previous()->isStandardType()) {
|
||||||
ValueType valuetype;
|
ValueType valuetype;
|
||||||
if (valuetype.fromLibraryType(tok->astOperand1()->expressionString(), mSettings)) {
|
if (tok->astOperand1() && valuetype.fromLibraryType(tok->astOperand1()->expressionString(), mSettings)) {
|
||||||
setValueType(tok, valuetype);
|
setValueType(tok, valuetype);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue