From: Alessandro Astone Date: Mon, 28 Nov 2022 23:03:42 +0000 (+0100) Subject: clipboard: Return empty string if error X-Git-Tag: 1.3.4~8 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/cd0a81cf28bfa990bb85d660c239a9e45bcb48a6?ds=sidebyside clipboard: Return empty string if error Instead of returning None, which becomes NULL in cython and gets sent through binder to become null in java --- diff --git a/tools/services/clipboard_manager.py b/tools/services/clipboard_manager.py index 2027959..c790efc 100644 --- a/tools/services/clipboard_manager.py +++ b/tools/services/clipboard_manager.py @@ -25,6 +25,7 @@ def start(args): return pyclip.paste() except Exception as e: logging.debug(str(e)) + return "" def service_thread(): while not stopping: