[libgdata] Bug 589265 – Crash on query error
- From: Philip Withnall <pwithnall src gnome org>
- To: svn-commits-list gnome org
- Subject: [libgdata] Bug 589265 – Crash on query error
- Date: Tue, 21 Jul 2009 18:24:15 +0000 (UTC)
commit 9b67a37d9af5f0200b7da6c49e3ae494ac4a995a
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Jul 21 19:23:54 2009 +0100
Bug 589265 â?? Crash on query error
gdata/gdata-service.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 3beac2c..17940ff 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -1037,8 +1037,10 @@ gdata_service_query (GDataService *self, const gchar *feed_uri, GDataQuery *quer
g_return_val_if_fail (entry_type != G_TYPE_INVALID, NULL);
message = _gdata_service_query (self, feed_uri, query, cancellable, progress_callback, progress_user_data, error);
- g_assert (message->response_body->data != NULL);
+ if (message == NULL)
+ return NULL;
+ g_assert (message->response_body->data != NULL);
klass = GDATA_SERVICE_GET_CLASS (self);
feed = _gdata_feed_new_from_xml (klass->feed_type, message->response_body->data, message->response_body->length, entry_type,
progress_callback, progress_user_data, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]