Ghidra is a software reverse engineering (SRE) framework
GP-0: fix for adds to NodeMap with null parent (!= root)
d-millar84c77bb90c0b
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/ObjectNode.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/ObjectNode.javaindex fa91cf18f1..e9915a3b73 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/ObjectNode.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/ObjectNode.java@@ -59,7 +59,9 @@ public class ObjectNode extends GTreeSlowLoadingNode { //extends GTreeNodepublic void setContainer(ObjectTree tree, ObjectContainer parent, ObjectContainer container) {this.container = container;name = container.getName();- tree.addToMap(parent, container, this);+ if (parent != null) {+ tree.addToMap(parent, container, this);+ }//fireNodeStructureChanged(this);}diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/ObjectTree.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/ObjectTree.javaindex 068652f921..f0043d763d 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/ObjectTree.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/objects/components/ObjectTree.java@@ -68,6 +68,7 @@ public class ObjectTree implements ObjectPane {public ObjectTree(ObjectContainer container) {this.root = new ObjectNode(this, null, container);+ addToMap(null, container, root);this.tree = new GTree(root);this.listingService = container.getProvider().getListingService();