[gnome-photos] offset-controller: Guard against get_query returning NULL
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] offset-controller: Guard against get_query returning NULL
- Date: Thu, 17 Dec 2015 12:43:57 +0000 (UTC)
commit 5f29c9610be06b0bb4a9cd2d3f6b66f7355cc1c8
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 | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-offset-controller.c b/src/photos-offset-controller.c
index 7dd3fdf..f84cbfd 100644
--- a/src/photos-offset-controller.c
+++ b/src/photos-offset-controller.c
@@ -1,6 +1,6 @@
/*
* Photos - access, organize and share your photos on GNOME
- * Copyright © 2012 Red Hat, Inc.
+ * Copyright © 2012, 2015 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -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]