[gnome-photos/wip/rishi/misc-fixes: 24/24] offset-controller: Guard against get_query returning NULL



commit 89547d25c265bdb3874ed01fb90afe62959decc1
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Dec 15 12:38:31 2015 +0100

    offset-controller: Guard against get_query returning NULL

 src/photos-offset-controller.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-offset-controller.c b/src/photos-offset-controller.c
index 7dd3fdf..5337fda 100644
--- a/src/photos-offset-controller.c
+++ b/src/photos-offset-controller.c
@@ -217,6 +217,8 @@ photos_offset_controller_reset_count (PhotosOffsetController *self)
     return;
 
   query = PHOTOS_OFFSET_CONTROLLER_GET_CLASS (self)->get_query (self);
+  g_return_if_fail (query != NULL);
+
   photos_tracker_queue_select (priv->queue,
                                query->sparql,
                                NULL,


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