aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-09-07 18:05:52 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-09-07 18:09:47 +0800
commita9eb911ea875ce7e9a1c43fe76ddc77811887a60 (patch)
tree8d57cdf9d7dd2063958df15b82e83a262b424fe0 /libempathy
parentab9ee7fa8f55743968169bdaef7515a7ed52eef8 (diff)
downloadgsoc2013-empathy-a9eb911ea875ce7e9a1c43fe76ddc77811887a60.tar
gsoc2013-empathy-a9eb911ea875ce7e9a1c43fe76ddc77811887a60.tar.gz
gsoc2013-empathy-a9eb911ea875ce7e9a1c43fe76ddc77811887a60.tar.bz2
gsoc2013-empathy-a9eb911ea875ce7e9a1c43fe76ddc77811887a60.tar.lz
gsoc2013-empathy-a9eb911ea875ce7e9a1c43fe76ddc77811887a60.tar.xz
gsoc2013-empathy-a9eb911ea875ce7e9a1c43fe76ddc77811887a60.tar.zst
gsoc2013-empathy-a9eb911ea875ce7e9a1c43fe76ddc77811887a60.zip
update_geocode: don't try to get position if location is empty
geocode-glib won't be able to much if contact's location dict is empty.
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index c6225c191..f27de0414 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -1663,7 +1663,8 @@ update_geocode (EmpathyContact *contact)
GHashTable *location;
location = empathy_contact_get_location (contact);
- if (location == NULL)
+ if (location == NULL ||
+ g_hash_table_size (location) == 0)
return;
/* No need to search for position if contact published it */