mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-0: fix for adds to NodeMap with null parent (!= root)
This commit is contained in:
@@ -59,7 +59,9 @@ public class ObjectNode extends GTreeSlowLoadingNode { //extends GTreeNode
|
||||
public 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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user