Skip to content

Ghidra is a software reverse engineering (SRE) framework

Fixed exception seen when creating a function and then pressing undo

dragonmachera51ef0926d52
diff --git a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerPanel.java b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerPanel.java
index 62ec18f050..0ac1dd40b7 100644
--- a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerPanel.java
+++ b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerPanel.java
@@ -246,6 +246,10 @@ public class DecompilerPanel extends JPanel implements FieldMouseListener, Field
private boolean goToFunctionSignature(Address address) {
+ if (!decompileData.hasDecompileResults()) {
+ return false;
+ }
+
Address entry = decompileData.getFunction().getEntryPoint();
if (!entry.equals(address)) {
return false;