[gnome-shell/wip/rstrode/rhel-8.0.0: 44/50] inputMethod: Add a null-check for text in vfunc_set_surrounding.
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/rhel-8.0.0: 44/50] inputMethod: Add a null-check for text in vfunc_set_surrounding.
- Date: Sun, 17 Feb 2019 17:32:32 +0000 (UTC)
commit ed1a8c582df5a6861ad5c3000717e37c1025cb56
Author: Andrea Azzarone <andrea azzarone canonical com>
Date: Mon Sep 17 18:00:04 2018 +0200
inputMethod: Add a null-check for text in vfunc_set_surrounding.
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/579
js/misc/inputMethod.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/misc/inputMethod.js b/js/misc/inputMethod.js
index 320a6cc33..ec84f7277 100644
--- a/js/misc/inputMethod.js
+++ b/js/misc/inputMethod.js
@@ -176,7 +176,7 @@ var InputMethod = new Lang.Class({
},
vfunc_set_surrounding(text, cursor, anchor) {
- if (this._context)
+ if (this._context && text)
this._context.set_surrounding_text(text, cursor, anchor);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]