Ghidra is a software reverse engineering (SRE) framework
GP-2004: NPE fix
d-millarc27ff7fcfc93
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 371101b879..c185523a93 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@@ -187,7 +187,7 @@ public class ObjectTree implements ObjectPane {@Overridepublic TargetObject getSelectedObject() {TreePath path = tree.getSelectionPath();- if (path == null && currentSelectionPaths.length > 0) {+ if (path == null && currentSelectionPaths != null && currentSelectionPaths.length > 0) {path = currentSelectionPaths[0];}if (path != null) {