entities similar to #83565 AttributeError: 'NoneType' object has no attribute 'statement'