mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-60 corrected NPE in Structure Editor (Closes #2009)
This commit is contained in:
parent
f5a5bbf7fc
commit
ac56db7479
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue