The error means that something calls operandType (const operand *op) with a null pointer. Maybe this saves the next person that looks at it two minutes of work.