misra.py: Fix dereference of None

This commit is contained in:
Daniel Marjamäki 2019-04-10 21:21:17 +02:00
parent b5d9313663
commit cb55ccb9b0
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ def getEssentialCategorylist(operand1, operand2):
if (operand1.str in {'++', '--'} or
operand2.str in {'++', '--'}):
return None, None
if (operand1.valueType.pointer or
operand2.valueType.pointer):
if ((operand1.valueType and operand1.valueType.pointer) or
(operand2.valueType and operand2.valueType.pointer)):
return None, None
e1 = getEssentialTypeCategory(operand1)
e2 = getEssentialTypeCategory(operand2)