ExprEngine; Fix crash

This commit is contained in:
Daniel Marjamäki 2020-01-15 18:35:55 +01:00
parent 446e7c3c0e
commit 52d72b6ffc
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ namespace {
for (std::map<nonneg int, ExprEngine::ValuePtr>::iterator it = memory.begin(); it != memory.end();) {
unsigned int varid = it->first;
const Variable *var = symbolDatabase->getVariableFromVarId(varid);
if (var->isGlobal())
if (var && var->isGlobal())
it = memory.erase(it);
else
++it;