diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 96cfe49bc..0a64d0536 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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; }