mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-22 10:02:49 +08:00
GP-6477 fix npe in bookmarks during undo
This commit is contained in:
+3
@@ -127,6 +127,9 @@ public class BookmarkProvider extends ComponentProviderAdapter {
|
||||
|
||||
BookmarkManager manager = program.getBookmarkManager();
|
||||
Bookmark bookmark = manager.getBookmark(rowObject.getKey());
|
||||
if (bookmark == null) {
|
||||
return null;
|
||||
}
|
||||
Address address = bookmark.getAddress();
|
||||
return new ProgramLocation(program, address);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user