Skip to content

Commit

Permalink
objective_c_class: fix handling of None types
Browse files Browse the repository at this point in the history
  • Loading branch information
shani authored and shani committed May 1, 2024
1 parent 48e3fda commit 52da513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hilda/objective_c_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 52da513

Please sign in to comment.