[gnome-photos] set-collection-job: Be robust against PhotosTrackerQueue failures



commit 5eae9e71af8599dfc3e1ae77e645ecff187dc19a
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Dec 28 13:37:32 2013 +0100

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

 src/photos-set-collection-job.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-set-collection-job.c b/src/photos-set-collection-job.c
index 2f7e880..3c5f222 100644
--- a/src/photos-set-collection-job.c
+++ b/src/photos-set-collection-job.c
@@ -215,6 +215,13 @@ photos_set_collection_job_run (PhotosSetCollectionJob *self,
   GList *l;
   GList *urns;
 
+  if (G_UNLIKELY (priv->queue == NULL))
+    {
+      if (callback != NULL)
+        (*callback) (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]