Bug hunting; avoid crash when argument is NULL

This commit is contained in:
Daniel Marjamäki 2020-01-15 07:15:47 +01:00
parent 7820b5dbcc
commit 5ac0eb100c
1 changed files with 1 additions and 1 deletions

View File

@ -1944,7 +1944,7 @@ void ExprEngine::runChecks(ErrorLogger *errorLogger, const Tokenizer *tokenizer,
if (parent->astOperand1()->function()) {
const Variable *arg = parent->astOperand1()->function()->getArgumentVar(num - 1);
if (arg->nameToken()) {
if (arg && arg->nameToken()) {
std::string bad;
MathLib::bigint low;