aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-06-16 19:45:35 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-06-16 19:45:35 +0800
commit5aa6b7a616bbdb3a8f826831259f5d23a622d8d4 (patch)
tree6160826f58aea5911055412658d6e0e527489627
parent6e163c9e8f82c6f1943e2a361d8d941a824cd105 (diff)
downloadgsoc2013-empathy-5aa6b7a616bbdb3a8f826831259f5d23a622d8d4.tar
gsoc2013-empathy-5aa6b7a616bbdb3a8f826831259f5d23a622d8d4.tar.gz
gsoc2013-empathy-5aa6b7a616bbdb3a8f826831259f5d23a622d8d4.tar.bz2
gsoc2013-empathy-5aa6b7a616bbdb3a8f826831259f5d23a622d8d4.tar.lz
gsoc2013-empathy-5aa6b7a616bbdb3a8f826831259f5d23a622d8d4.tar.xz
gsoc2013-empathy-5aa6b7a616bbdb3a8f826831259f5d23a622d8d4.tar.zst
gsoc2013-empathy-5aa6b7a616bbdb3a8f826831259f5d23a622d8d4.zip
cope with geocode_object_new_for_params returning NULL
-rw-r--r--libempathy/empathy-contact.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 8cca70944..d0628a490 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));