From f1aedb9e8841cead7fc27dbc362a44032f1227d0 Mon Sep 17 00:00:00 2001 From: Tom Beckmann Date: Mon, 24 Dec 2012 21:48:39 +0100 Subject: [PATCH] appicon: Check whether we really got a BamfApplication associated with the icon, before we use it --- src/Widgets/AppIcon.vala | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Widgets/AppIcon.vala b/src/Widgets/AppIcon.vala index cebccdce..c802a229 100644 --- a/src/Widgets/AppIcon.vala +++ b/src/Widgets/AppIcon.vala @@ -68,11 +68,12 @@ namespace Gala var wallpaper = (WorkspaceThumb.destination as WorkspaceThumb).wallpaper; icons.add_child (actor); - - var xids = app.get_xids (); - if (xids.length > 1) { //get all the windows that belong to this app + + // get all the windows that belong to this app, if possible + if (app != null && app.get_xids ().length > 1) { var wins = window.get_workspace ().list_windows (); - for (var i=0;i