From 83c7a6d319c9b200b8041e5062e8aa8275c7fc48 Mon Sep 17 00:00:00 2001 From: dragonmacher <48328597+dragonmacher@users.noreply.github.com> Date: Tue, 28 Feb 2023 11:12:31 -0500 Subject: [PATCH] Test fixes --- .../app/plugin/core/function/editor/FunctionEditorDialog.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/editor/FunctionEditorDialog.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/editor/FunctionEditorDialog.java index 568d284977..128f59efd0 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/editor/FunctionEditorDialog.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/editor/FunctionEditorDialog.java @@ -681,6 +681,9 @@ public class FunctionEditorDialog extends DialogComponentProvider implements Mod public void focusLost(FocusEvent e) { Component component = e.getComponent(); Component opposite = e.getOppositeComponent(); + if (opposite == null) { + return; // this implies a non-Java app has taken focus + } if (!SwingUtilities.isDescendingFrom(opposite, component)) { component.removeFocusListener(this); if (cellEditor != null) {