Fixed stack trace when clicking a location mapped to an

UndefinedFunction
This commit is contained in:
dragonmacher
2021-10-29 11:27:18 -04:00
parent 536958af4d
commit 04c0f0ef93
@@ -31,6 +31,7 @@ import ghidra.program.model.pcode.*;
import ghidra.program.model.symbol.Symbol;
import ghidra.program.model.symbol.SymbolTable;
import ghidra.program.util.ProgramLocation;
import ghidra.util.UndefinedFunction;
import ghidra.util.data.DataTypeParser.AllowedDataTypes;
/**
@@ -216,7 +217,7 @@ public abstract class AbstractDecompilerAction extends DockingAction {
// prefer the decompiler's function reference over the program location's address
Function function = getFunction(context);
if (function != null) {
if (function != null && !(function instanceof UndefinedFunction)) {
return function.getSymbol();
}