From 7f073df53374bc1b96ac07e949af11b8af06b94b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 9 Jun 2023 09:27:04 +0800 Subject: [PATCH] Fix crash starting Emacs to open file * java/org/gnu/emacs/EmacsThread.java (run): Correct check against extraStartupArgument when an initial file is specified. --- java/org/gnu/emacs/EmacsThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/gnu/emacs/EmacsThread.java b/java/org/gnu/emacs/EmacsThread.java index 1343b70bf5a..c003ea95c50 100644 --- a/java/org/gnu/emacs/EmacsThread.java +++ b/java/org/gnu/emacs/EmacsThread.java @@ -65,7 +65,7 @@ public final class EmacsThread extends Thread } else { - if (extraStartupArgument != null) + if (extraStartupArgument == null) args = new String[] { "libandroid-emacs.so", fileToOpen, }; else -- 2.39.2