diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/navigation/locationreferences/ReferenceUtils.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/navigation/locationreferences/ReferenceUtils.java index 431feb3b6b..132da32f43 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/navigation/locationreferences/ReferenceUtils.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/navigation/locationreferences/ReferenceUtils.java @@ -1097,6 +1097,9 @@ public final class ReferenceUtils { Enum enumm = (Enum) dt; List names = getEnumNames(data, enumm); for (String name : names) { + if (!enumm.contains(name)) { + continue; + } long value = enumm.getValue(name); if (matcher.matches(name, (int) value)) { return true;