From add40ccfb997e9e2576631804fc96df65ddfb156 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 3 Apr 2023 18:24:02 +0800 Subject: [PATCH] ; ; * src/androidselect.c (Fandroid_clipboard_exists_p): Add check. --- src/androidselect.c | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.39.2