diff options
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/function.py b/python/function.py index 8fa8a0e4..7d14c2bb 100644 --- a/python/function.py +++ b/python/function.py @@ -2959,7 +2959,11 @@ class Function: # Special case: function parameters have index 0 and are defined at the start of the function def_addr = self.start else: - var_defs = self.mlil.get_var_definitions(var) + func_mlil = self.mlil + if func_mlil is None: + raise ValueError("Could not get definition for Variable") + + var_defs = func_mlil.get_var_definitions(var) if var_defs is None: raise ValueError("Could not get definition for Variable") |
