From 98cdd4454323ca04f49a1c4f46f404fd2b6a3efd Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 13 Feb 2017 11:10:19 +0100 Subject: [PATCH] portalHelper: Fix runtime warning When there is no URI, then the title should be empty, not null: Gjs-WARNING **: JS ERROR: Error: Argument 'str' (type utf8) may not be null https://bugzilla.gnome.org/show_bug.cgi?id=778552 --- js/portalHelper/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js index ccbe77b88..6070af2cc 100644 --- a/js/portalHelper/main.js +++ b/js/portalHelper/main.js @@ -176,7 +176,7 @@ const PortalWindow = new Lang.Class({ if (uri) this._headerBar.setSubtitle(GLib.uri_unescape_string(uri, null)); else - this._headerBar.setSubtitle(null); + this._headerBar.setSubtitle(''); }, refresh: function() {