diff --git a/addons/misra.py b/addons/misra.py index 78ee1d080..e177d397e 100644 --- a/addons/misra.py +++ b/addons/misra.py @@ -381,7 +381,7 @@ def misra_10_4(data): def misra_10_6(data): for token in data.tokenlist: - if token.str != '=': + if token.str != '=' or not token.astOperand1 or not token.astOperand2: continue vt1 = token.astOperand1.valueType vt2 = token.astOperand2.valueType