[gnome-photos/wip/rishi/misc-fixes: 14/20] offset-controller: Guard against get_query returning NULL
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/misc-fixes: 14/20] offset-controller: Guard against get_query returning NULL
- Date: Tue, 15 Dec 2015 20:09:50 +0000 (UTC)
commit fca46cfec630315fcc6b9910e2def39a260242fb
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]