From 52da513951337cd8553d0ddd85e86904bf2d65bf Mon Sep 17 00:00:00 2001 From: shani Date: Tue, 30 Apr 2024 22:38:47 -0700 Subject: [PATCH] objective_c_class: fix handling of None types --- hilda/objective_c_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hilda/objective_c_class.py b/hilda/objective_c_class.py index 0ddf3c5..f982f81 100644 --- a/hilda/objective_c_class.py +++ b/hilda/objective_c_class.py @@ -240,7 +240,7 @@ def _load_class_data(self, data: dict): self.name = data['name'] self.protocols = data['protocols'] self.ivars = [ - Ivar(name=ivar['name'], type_=decode_type(ivar['type']), offset=ivar['offset']) + Ivar(name=ivar['name'], type_=decode_type(ivar['type']) if ivar['type'] else 'unknown_type_t', offset=ivar['offset']) for ivar in data['ivars'] ] self.properties = [