From: Po Lu Date: Fri, 9 Jun 2023 01:27:04 +0000 (+0800) Subject: Fix crash starting Emacs to open file X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7f073df53374bc1b96ac07e949af11b8af06b94b;p=emacs.git Fix crash starting Emacs to open file * java/org/gnu/emacs/EmacsThread.java (run): Correct check against extraStartupArgument when an initial file is specified. --- 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