]> git.eshelyaron.com Git - emacs.git/commitdiff
; ; * src/androidselect.c (Fandroid_clipboard_exists_p): Add check.
authorPo Lu <luangruo@yahoo.com>
Mon, 3 Apr 2023 10:24:02 +0000 (18:24 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 3 Apr 2023 10:24:02 +0000 (18:24 +0800)
src/androidselect.c

index f54a6d6f52ca2522481f2ca28c5b139b65931629..dfbe0240941bab44e613197fd0744df59a801e2a 100644 (file)
@@ -208,6 +208,9 @@ DEFUN ("android-clipboard-exists-p", Fandroid_clipboard_exists_p,
   jboolean rc;
   jmethodID method;
 
+  if (!android_init_gui)
+    error ("No Android display connection");
+
   method = clipboard_class.clipboard_exists;
   rc = (*android_java_env)->CallBooleanMethod (android_java_env,
                                               clipboard,