[gnome-photos] offset-controller: Be robust against PhotosTrackerQueue failures
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] offset-controller: Be robust against PhotosTrackerQueue failures
- Date: Mon, 30 Dec 2013 15:13:42 +0000 (UTC)
commit d9f4c826029ec87496fe033e982fe7adbdf27e34
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Dec 28 13:28:33 2013 +0100
offset-controller: Be robust against PhotosTrackerQueue failures
Fixes: https://bugzilla.gnome.org/704947
src/photos-offset-controller.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-offset-controller.c b/src/photos-offset-controller.c
index 657f8cc..b0fb042 100644
--- a/src/photos-offset-controller.c
+++ b/src/photos-offset-controller.c
@@ -208,6 +208,9 @@ photos_offset_controller_reset_count (PhotosOffsetController *self)
PhotosOffsetControllerPrivate *priv = self->priv;
PhotosQuery *query;
+ if (G_UNLIKELY (priv->queue == NULL))
+ return;
+
query = PHOTOS_OFFSET_CONTROLLER_GET_CLASS (self)->get_query (self);
photos_tracker_queue_select (priv->queue,
query->sparql,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]