[empathy] cope with geocode_object_new_for_params returning NULL



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]