[empathy] cope with geocode_object_new_for_params returning NULL
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] cope with geocode_object_new_for_params returning NULL
- Date: Thu, 16 Jun 2011 12:55:01 +0000 (UTC)
commit 5aa6b7a616bbdb3a8f826831259f5d23a622d8d4
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Jun 16 12:45:35 2011 +0100
cope with geocode_object_new_for_params returning NULL
libempathy/empathy-contact.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 8cca709..d0628a4 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -1645,6 +1645,8 @@ update_geocode (EmpathyContact *contact)
return;
geocode = geocode_object_new_for_params (location);
+ if (geocode == NULL)
+ return;
geocode_object_resolve_async (geocode, NULL, geocode_cb,
g_object_ref (contact));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]