inputMethod: Add a null-check for text in vfunc_set_surrounding.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/579
This commit is contained in:
Andrea Azzarone 2018-09-17 18:00:04 +02:00 committed by Florian Müllner
parent 4a4fa8b2d7
commit 0cf2d396b0

View File

@ -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);
},