From b65f80f53709c7dd9235612d7277c282f9193e81 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Sun, 6 Sep 2009 17:34:04 +0100 Subject: tp-contact-factory: allow _get_from_handles to call with no handles. Signed-off-by: Jonny Lamb --- libempathy/empathy-tp-contact-factory.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libempathy/empathy-tp-contact-factory.c') 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); -- cgit v1.2.3