mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-12-02 00:51:54 +00:00
GP-0 correct NPE condition for decompiler hover
This commit is contained in:
parent
102729174d
commit
2579c372f9
@ -144,6 +144,9 @@ public class DataTypeDecompilerHover extends AbstractConfigurableHover
|
||||
int n = parent.getLength();
|
||||
if (offset >= 0 && offset < n) {
|
||||
DataTypeComponent dtc = parent.getComponentAt(offset);
|
||||
if (dtc == null) {
|
||||
return null;
|
||||
}
|
||||
fieldDt = dtc.getDataType();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user