Ghidra is a software reverse engineering (SRE) framework
GP-1131 - Fixed exception in Decompiler when hovering over function not in memory
dragonmacherd9b151f527e3
diff --git a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/hover/FunctionSignatureDecompilerHover.java b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/hover/FunctionSignatureDecompilerHover.javaindex 84d94e3d13..584fb9d093 100644--- a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/hover/FunctionSignatureDecompilerHover.java+++ b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/hover/FunctionSignatureDecompilerHover.java@@ -84,6 +84,9 @@ public class FunctionSignatureDecompilerHover extends AbstractConfigurableHoverif (token instanceof ClangFuncNameToken) {Function function = DecompilerUtils.getFunction(program, (ClangFuncNameToken) token);+ if (function == null) {+ return null; // no function in program; maybe bad address+ }String content = ToolTipUtils.getToolTipText(function, false);return createTooltipComponent(content);}