diff --git a/js/ui/widget.js b/js/ui/widget.js index 0d326ae5a..d4f661c31 100644 --- a/js/ui/widget.js +++ b/js/ui/widget.js @@ -290,6 +290,7 @@ function AppsWidgetInfo(appInfo) { AppsWidgetInfo.prototype = { _init : function(appInfo) { this._info = appInfo; + this.name = appInfo.get_name(); }, createIcon : function(size) { @@ -319,6 +320,8 @@ AppsWidget.prototype = { let apps = appSystem.get_favorites(); for (let i = 0; i < apps.length; i++) { let app = appSystem.lookup_app(apps[i]); + if (!app) + continue; this.addItem(new AppsWidgetInfo(app)); } }