[gnome-photos] fetch-collections-job: Be robust against PhotosTrackerQueue failures



commit e0c135efc688dc3276b99aa68c925cd36405a239
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Dec 28 12:44:37 2013 +0100

    fetch-collections-job: Be robust against PhotosTrackerQueue failures
    
    Fixes: https://bugzilla.gnome.org/704947

 src/photos-fetch-collections-job.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-fetch-collections-job.c b/src/photos-fetch-collections-job.c
index 9042527..46b5d3e 100644
--- a/src/photos-fetch-collections-job.c
+++ b/src/photos-fetch-collections-job.c
@@ -217,6 +217,13 @@ photos_fetch_collections_job_run (PhotosFetchCollectionsJob *self,
   PhotosFetchCollectionsJobPrivate *priv = self->priv;
   PhotosQuery *query;
 
+  if (G_UNLIKELY (priv->queue == NULL))
+    {
+      if (callback != NULL)
+        (*callback) (NULL, user_data);
+      return;
+    }
+
   priv->callback = callback;
   priv->user_data = user_data;
 


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