From 65ed72ab0ee3a1515e9f39e5c1c84a6d52a4ebbc Mon Sep 17 00:00:00 2001 From: dev747368 <48332326+dev747368@users.noreply.github.com> Date: Fri, 29 Mar 2019 17:18:20 -0400 Subject: [PATCH] Fix exception when MyProgramChangesDisplayPlugin is uninstalled. --- .../app/plugin/core/misc/MyProgramChangesDisplayPlugin.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/misc/MyProgramChangesDisplayPlugin.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/misc/MyProgramChangesDisplayPlugin.java index fa44fde9b8..897fa89840 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/misc/MyProgramChangesDisplayPlugin.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/misc/MyProgramChangesDisplayPlugin.java @@ -242,6 +242,10 @@ public class MyProgramChangesDisplayPlugin extends ProgramPlugin implements Doma public void dispose() { worker.dispose(); + if (currentProgram != null) { + currentProgram.removeTransactionListener(transactionListener); + currentProgram.removeListener(this); + } tool.getProject().getProjectData().removeDomainFolderChangeListener(folderListener);