aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-08 19:34:38 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-08 21:51:50 +0800
commite793c8e563a0ab7f61c06852423571a21f2e3c05 (patch)
tree3bc86803c1fd2c99770985e3b25ae19cb971baae
parent04ef027198384baacd47346f59c8a22c5c7d2e20 (diff)
downloadgsoc2013-empathy-e793c8e563a0ab7f61c06852423571a21f2e3c05.tar
gsoc2013-empathy-e793c8e563a0ab7f61c06852423571a21f2e3c05.tar.gz
gsoc2013-empathy-e793c8e563a0ab7f61c06852423571a21f2e3c05.tar.bz2
gsoc2013-empathy-e793c8e563a0ab7f61c06852423571a21f2e3c05.tar.lz
gsoc2013-empathy-e793c8e563a0ab7f61c06852423571a21f2e3c05.tar.xz
gsoc2013-empathy-e793c8e563a0ab7f61c06852423571a21f2e3c05.tar.zst
gsoc2013-empathy-e793c8e563a0ab7f61c06852423571a21f2e3c05.zip
don't start geocode search if the address is empty
-rw-r--r--libempathy/empathy-contact.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 707031afb..f6f0e255d 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -1364,9 +1364,13 @@ update_geocode (EmpathyContact *contact)
DEBUG ("\t - street: %s", str);
}
- g_object_ref (contact);
- geoclue_geocode_address_to_position_async (geocode, address,
- geocode_cb, contact);
+ if (g_hash_table_size (address) > 0)
+ {
+ g_object_ref (contact);
+
+ geoclue_geocode_address_to_position_async (geocode, address,
+ geocode_cb, contact);
+ }
g_hash_table_unref (address);
}