Fix segmentation fault when checking build/tokenize.cpp

This commit is contained in:
Daniel Marjamäki 2014-03-29 20:41:17 +01:00
parent deef4642d4
commit efc84ac310
1 changed files with 1 additions and 1 deletions

View File

@ -3318,7 +3318,7 @@ void CheckOther::checkNegativeBitwiseShift()
continue;
if (!rhs->isNumber() && !rhs->variable())
continue;
if (!rhs->variable()->typeStartToken()->isStandardType())
if (rhs->variable() && !rhs->variable()->typeStartToken()->isStandardType())
continue;
}