GP-60 corrected NPE in Structure Editor (Closes #2009)

This commit is contained in:
ghidra1 2022-06-09 20:49:13 -04:00
parent f5a5bbf7fc
commit ac56db7479

View file

@ -581,6 +581,9 @@ class StructureEditorModel extends CompEditorModel {
// set actions based on number of items selected
int rowIndex = getRow();
DataTypeComponent comp = getComponent(rowIndex);
if (comp == null) {
return false;
}
DataType dt = comp.getDataType();
if (viewComposite.isPackingEnabled()) {
return true;