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



commit 22446aff150085433ad07a508b5ad03b55be3b5e
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Dec 28 11:53:58 2013 +0100

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

 src/photos-create-collection-job.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-create-collection-job.c b/src/photos-create-collection-job.c
index d3cd93b..d7f2eda 100644
--- a/src/photos-create-collection-job.c
+++ b/src/photos-create-collection-job.c
@@ -195,6 +195,13 @@ photos_create_collection_job_run (PhotosCreateCollectionJob *self,
   PhotosCreateCollectionJobPrivate *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]