GP-0 correct NPE condition for decompiler hover

This commit is contained in:
ghidra1 2023-04-25 14:08:19 -04:00
parent 102729174d
commit 2579c372f9

View File

@ -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();
}
}