diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-09-07 18:05:52 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-09-07 18:09:47 +0800 |
commit | a9eb911ea875ce7e9a1c43fe76ddc77811887a60 (patch) | |
tree | 8d57cdf9d7dd2063958df15b82e83a262b424fe0 | |
parent | ab9ee7fa8f55743968169bdaef7515a7ed52eef8 (diff) | |
download | gsoc2013-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.
-rw-r--r-- | libempathy/empathy-contact.c | 3 |
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 */ |