summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-07-01 09:25:13 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-05 10:09:09 -0400
commit421b398453d09e06e7b202229e34b66414683a45 (patch)
tree301a3a5291bff314153b32da59d65a3e956140e2 /python
parent7b2a68bb60200446841f8546552ff3cdbf14e63e (diff)
Fix bug in python/variable.py
Diffstat (limited to 'python')
-rw-r--r--python/variable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/variable.py b/python/variable.py
index d4148446..fc2eb54a 100644
--- a/python/variable.py
+++ b/python/variable.py
@@ -723,7 +723,7 @@ class Variable:
@property
def type(self) -> 'binaryninja.types.Type':
var_type_conf = core.BNGetVariableType(self._function.handle, self._var.to_BNVariable())
- assert var_type_conf.type
+ assert var_type_conf.type is not None, "core.BNGetVariableType returned None"
_type = binaryninja.types.Type(var_type_conf.type, self._function.platform, var_type_conf.confidence)
return _type