BAD_NULL_ERROR is IntegrityError