Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash: if insn.address != ea: -- AttributeError: 'NoneType' object has no attribute 'address' #8

Open
advokat11 opened this issue Apr 11, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@advokat11
Copy link

Traceback (most recent call last):
File "C:\Users/user/AppData/Roaming/Hex-Rays/IDA Pro/plugins\patching\actions.py", line 127, in activate
wid = PatchingController(self.core, get_current_ea(ctx))
File "C:\Users/user/AppData/Roaming/Hex-Rays/IDA Pro/plugins\patching\ui\preview.py", line 47, in init
self.refresh()
File "C:\Users/user/AppData/Roaming/Hex-Rays/IDA Pro/plugins\patching\ui\preview.py", line 223, in refresh
self.select_address(self.address)
File "C:\Users/user/AppData/Roaming/Hex-Rays/IDA Pro/plugins\patching\ui\preview.py", line 68, in select_address
if insn.address != ea:
AttributeError: 'NoneType' object has no attribute 'address'

@gaasedelen gaasedelen changed the title not working Crash: if insn.address != ea: -- AttributeError: 'NoneType' object has no attribute 'address' Aug 17, 2024
@gaasedelen gaasedelen added the bug Something isn't working label Aug 17, 2024
@gaasedelen
Copy link
Owner

This is indeed a bug and I can understand why it would crash, but I can't actually seem to figure out how you triggered it. Even deleting segments.

The fix seems like I shouldn't be giving the user the ability to launch the assembly window in some special context, but I'm already pretty strict about where it even exposes the Assemble action anyway.

It seems rare enough that it's not a big deal, but I'm curious if anyone comes up with a way to reproduce this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants