summaryrefslogtreecommitdiff
path: root/python/lowlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/lowlevelil.py')
-rw-r--r--python/lowlevelil.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index 6130baa3..e131f187 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -72,6 +72,7 @@ LowLevelILOperandType = Union[
List['SSARegisterStack'],
List['SSAFlag'],
List['SSARegisterOrFlag'],
+ None
]
class LowLevelILLabel:
@@ -2875,8 +2876,8 @@ class LowLevelILFunction:
self._source_function = value
@property
- def view(self) -> 'binaryview.BinaryView':
- return self.source_function.view
+ def view(self) -> Optional['binaryview.BinaryView']:
+ return self.source_function.view if self.source_function else None
@property
def il_form(self) -> FunctionGraphType: