From: Po Lu Date: Mon, 3 Apr 2023 10:24:02 +0000 (+0800) Subject: ; ; * src/androidselect.c (Fandroid_clipboard_exists_p): Add check. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=add40ccfb997e9e2576631804fc96df65ddfb156;p=emacs.git ; ; * src/androidselect.c (Fandroid_clipboard_exists_p): Add check. --- diff --git a/src/androidselect.c b/src/androidselect.c index f54a6d6f52c..dfbe0240941 100644 --- a/src/androidselect.c +++ b/src/androidselect.c @@ -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,