aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-09-07 00:34:04 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-09-07 00:38:38 +0800
commitb65f80f53709c7dd9235612d7277c282f9193e81 (patch)
tree967976865a4e1949fc79e75ca32d10c882ba7588
parentef621c236f7127f984e5796394264f2babd1920d (diff)
downloadgsoc2013-empathy-b65f80f53709c7dd9235612d7277c282f9193e81.tar
gsoc2013-empathy-b65f80f53709c7dd9235612d7277c282f9193e81.tar.gz
gsoc2013-empathy-b65f80f53709c7dd9235612d7277c282f9193e81.tar.bz2
gsoc2013-empathy-b65f80f53709c7dd9235612d7277c282f9193e81.tar.lz
gsoc2013-empathy-b65f80f53709c7dd9235612d7277c282f9193e81.tar.xz
gsoc2013-empathy-b65f80f53709c7dd9235612d7277c282f9193e81.tar.zst
gsoc2013-empathy-b65f80f53709c7dd9235612d7277c282f9193e81.zip
tp-contact-factory: allow _get_from_handles to call with no handles.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--libempathy/empathy-tp-contact-factory.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c
index 6b4c20b53..c990b92f4 100644
--- a/libempathy/empathy-tp-contact-factory.c
+++ b/libempathy/empathy-tp-contact-factory.c
@@ -1047,6 +1047,11 @@ empathy_tp_contact_factory_get_from_handles (EmpathyTpContactFactory *tp_factory
EmpathyTpContactFactoryPriv *priv = GET_PRIV (tp_factory);
GetContactsData *data;
+ if (n_handles == 0) {
+ callback (tp_factory, 0, NULL, 0, NULL, NULL, user_data, weak_object);
+ return;
+ }
+
g_return_if_fail (EMPATHY_IS_TP_CONTACT_FACTORY (tp_factory));
g_return_if_fail (handles != NULL);