]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix crash starting Emacs to open file
authorPo Lu <luangruo@yahoo.com>
Fri, 9 Jun 2023 01:27:04 +0000 (09:27 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 9 Jun 2023 01:27:04 +0000 (09:27 +0800)
* java/org/gnu/emacs/EmacsThread.java (run): Correct check
against extraStartupArgument when an initial file is specified.

java/org/gnu/emacs/EmacsThread.java

index 1343b70bf5a8e00421809bb8ade321859b2cc2ea..c003ea95c509b26583f4252a3e8fbef480f1f14c 100644 (file)
@@ -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