summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2020-10-06 14:57:22 -0400
committerBrian Potchik <brian@vector35.com>2020-10-06 14:57:22 -0400
commitaca3edf17f3dba99664c5b3bfc7b7d084d8d21a3 (patch)
treeb16d5c526fda6e794c6e0035ca457839429e647b /python
parent0e10983e83fbd5980aa4d2aed06057c3676bf402 (diff)
Verify mlil is not None in high level IL mapping API.
Diffstat (limited to 'python')
-rw-r--r--python/lowlevelil.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index 64a862d6..396f3925 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -1028,6 +1028,8 @@ class LowLevelILInstruction(object):
@property
def high_level_il(self):
"""Gets the high level IL expression corresponding to this expression (may be None for eliminated instructions)"""
+ if self.mlil is None:
+ return None
return self.mlil.hlil
@property