]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
clipboard: Return empty string if error
authorAlessandro Astone <ales.astone@gmail.com>
Mon, 28 Nov 2022 23:03:42 +0000 (00:03 +0100)
committerAlessandro Astone <ales.astone@gmail.com>
Mon, 28 Nov 2022 23:03:47 +0000 (00:03 +0100)
Instead of returning None, which becomes NULL in cython and gets
sent through binder to become null in java

tools/services/clipboard_manager.py

index 2027959d10591a682d15f4cbd7589d37ce1a7838..c790efc18e35d924b9be80e9868b4aa5056251db 100644 (file)
@@ -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: