[gnome-photos] collection-icon-watcher: Be robust against PhotosTrackerQueue failures



commit daaa5e42ec4bbd4eb4fbcbc327e1484a8bd02ad3
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Dec 27 22:19:41 2013 +0100

    collection-icon-watcher: Be robust against PhotosTrackerQueue failures
    
    Fixes: https://bugzilla.gnome.org/704947

 src/photos-collection-icon-watcher.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-collection-icon-watcher.c b/src/photos-collection-icon-watcher.c
index 1fa71ef..f4691c3 100644
--- a/src/photos-collection-icon-watcher.c
+++ b/src/photos-collection-icon-watcher.c
@@ -301,6 +301,9 @@ photos_collection_icon_watcher_start (PhotosCollectionIconWatcher *self)
 
   photos_collection_icon_watcher_clear (self);
 
+  if (G_UNLIKELY (priv->queue == NULL))
+    return;
+
   id = photos_base_item_get_id (priv->collection);
   query = photos_query_builder_collection_icon_query (id);
   photos_tracker_queue_select (priv->queue,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]