diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index 1d5e7a5dc..9c9ee6706 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -182,6 +182,10 @@ const RunDialog = new Lang.Class({ let results = someResults.reduce(function(a, b) { return a.concat(b); }, []); + + if (!results.length) + return null; + let common = results.reduce(_getCommon, null); return common.substr(text.length); },