diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 1d998efff..8ff743ecc 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -48,6 +48,9 @@ GnomeShell.prototype = { let success; try { returnValue = JSON.stringify(eval(code)); + // A hack; DBus doesn't have null/undefined + if (returnValue == undefined) + returnValue = ""; success = true; } catch (e) { returnValue = JSON.stringify(e);