Another check for null

This commit is contained in:
Paul 2020-06-25 19:12:01 -05:00
parent 263a0364cc
commit 1bef6ed268
1 changed files with 1 additions and 1 deletions

View File

@ -1227,7 +1227,7 @@ const Token * getTokenArgumentFunction(const Token * tok, int& argn)
}
const Token* argtok = tok;
while(argtok->astParent() && (!Token::Match(argtok->astParent(), ",|(|{") || argtok->astParent()->isCast())) {
while(argtok && argtok->astParent() && (!Token::Match(argtok->astParent(), ",|(|{") || argtok->astParent()->isCast())) {
argtok = argtok->astParent();
}
if (!argtok)