Ghidra is a software reverse engineering (SRE) framework
GP-60 corrected NPE in Structure Editor (Closes #2009)
ghidra1ac56db747998
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/StructureEditorModel.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/StructureEditorModel.javaindex 6244ebd3a8..1c39297682 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/StructureEditorModel.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/StructureEditorModel.java@@ -581,6 +581,9 @@ class StructureEditorModel extends CompEditorModel {// set actions based on number of items selectedint rowIndex = getRow();DataTypeComponent comp = getComponent(rowIndex);+ if (comp == null) {+ return false;+ }DataType dt = comp.getDataType();if (viewComposite.isPackingEnabled()) {return true;