diff --git a/addons/misra.py b/addons/misra.py index 99b1e4265..a542dcaac 100755 --- a/addons/misra.py +++ b/addons/misra.py @@ -1916,6 +1916,8 @@ class MisraChecker: token = i.nameToken elif isinstance(i, cppcheckdata.Function): token = i.tokenDef + if not token: + continue if len(token.str) < 2: continue if token.str == 'errno':