File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ def run(self):
259259 self .context .binaryView .file .navigate (self .context .binaryView .file .view , snippetGlobals ['here' ])
260260 if "current_address" in snippetGlobals and hasattr (self .context , "address" ) and snippetGlobals ['current_address' ] != self .context .address :
261261 self .context .binaryView .file .navigate (self .context .binaryView .file .view , snippetGlobals ['current_address' ])
262- if "current_raw_offset" in snippetGlobals and hasattr (self .context , "address" ) and snippetGlobals ['current_raw_offset' ] != self .context .binaryView .get_data_offset_for_address (self .context .address ):
262+ if self . context . binaryView is not None and "current_raw_offset" in snippetGlobals and hasattr (self .context , "address" ) and snippetGlobals ['current_raw_offset' ] != self .context .binaryView .get_data_offset_for_address (self .context .address ):
263263 addr = self .context .binaryView .get_address_for_data_offset (snippetGlobals ["current_raw_offset" ])
264264 if addr is not None :
265265 if not self .context .binaryView .file .navigate (self .context .binaryView .file .view , addr ):
You can’t perform that action at this time.
0 commit comments