summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sbmanager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sbmanager.c b/src/sbmanager.c
index 19b0cc7..eeb4875 100644
--- a/src/sbmanager.c
+++ b/src/sbmanager.c
@@ -489,6 +489,9 @@ static void gui_dock_align_icons(gboolean animated)
/* set positions */
for (i = 0; i < count; i++) {
SBItem *item = g_list_nth_data(dockitems, i);
+ if (!item || !item->texture) {
+ continue;
+ }
ClutterActor *icon = clutter_actor_get_parent(item->texture);
if (!icon) {
continue;