diff options
| author | Xusheng <xusheng@vector35.com> | 2022-08-16 14:18:50 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2022-08-16 14:18:50 +0800 |
| commit | 77078fa55a35a931f6df1cd2bd1d96f90aab39c9 (patch) | |
| tree | 49420a0c4cdb0edd5fe6c7eed5228e79745177bd /python | |
| parent | 5aadb05ccfa07ecc9ca1fab59a1d104aa1a343de (diff) | |
Properly check whether self.active_view is None. Close https://github.com/Vector35/debugger/issues/236.
Diffstat (limited to 'python')
| -rw-r--r-- | python/scriptingprovider.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py index 9ee625e3..f60432cf 100644 --- a/python/scriptingprovider.py +++ b/python/scriptingprovider.py @@ -781,7 +781,7 @@ from binaryninja import * self.active_selection_begin = self.current_selection_begin self.active_selection_end = self.current_selection_end self.active_dbg = self.current_dbg - if self.active_view: + if self.active_view is not None: self.active_file_offset = self.active_view.get_data_offset_for_address(self.active_addr) else: self.active_file_offset = None |
