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
|
||||
else if (tok->previous() && tok->previous()->isStandardType()) {
|
||||
ValueType valuetype;
|
||||
if (valuetype.fromLibraryType(tok->astOperand1()->expressionString(), mSettings)) {
|
||||
if (tok->astOperand1() && valuetype.fromLibraryType(tok->astOperand1()->expressionString(), mSettings)) {
|
||||
setValueType(tok, valuetype);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue