From a9eb911ea875ce7e9a1c43fe76ddc77811887a60 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 7 Sep 2011 12:05:52 +0200 Subject: 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. --- libempathy/empathy-contact.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libempathy/empathy-contact.c') 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 */ -- cgit v1.2.3