summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorkat <katherine@vector35.com>2022-08-04 17:42:19 -0400
committerkat <katherine@vector35.com>2022-08-04 17:42:19 -0400
commitf8905b143f6f492ac38d3ba44aea9d8946f8c41b (patch)
tree57fb58a97563e9f2429f95e808910b2649b9464b /python
parentb8d30e4bad9b1e3cf8584a2425547433dc0b7677 (diff)
Fix regression in scripting console when no view is active
Diffstat (limited to 'python')
-rw-r--r--python/scriptingprovider.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py
index bd7dca2d..9ee625e3 100644
--- a/python/scriptingprovider.py
+++ b/python/scriptingprovider.py
@@ -845,7 +845,7 @@ from binaryninja import *
if var and self.active_func:
var = Variable.from_core_variable(self.active_func, var)
- if view_location.isValid():
+ if view_location is not None and view_location.isValid():
self.active_il_index = view_location.getInstrIndex()
ilType = view_location.getILViewType()
if ilType == FunctionGraphType.LowLevelILFunctionGraph: