From 1554d196ea0f20d27e1dc28c24aaba3ab5d2bb35 Mon Sep 17 00:00:00 2001 From: Mike Hunhoff Date: Mon, 10 Jul 2023 14:16:08 -0600 Subject: [PATCH] fixes unhandled exception when empty auto complete clicked (#60) --- src/main/java/ghidrathon/GhidrathonPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/ghidrathon/GhidrathonPlugin.java b/src/main/java/ghidrathon/GhidrathonPlugin.java index 181cd07..e621ad9 100644 --- a/src/main/java/ghidrathon/GhidrathonPlugin.java +++ b/src/main/java/ghidrathon/GhidrathonPlugin.java @@ -26,6 +26,7 @@ import ghidra.util.task.TaskMonitorAdapter; import java.io.OutputStream; import java.io.PrintWriter; +import java.util.Collections; import java.util.List; import javax.swing.*; @@ -113,7 +114,7 @@ public void flushConsole() { @Override public List getCompletions(String cmd) { // TODO Auto-generated method stub - return null; + return Collections.emptyList(); } private void resetInterpreter() {