From: Jonny Lamb Date: Sun, 6 Sep 2009 16:34:04 +0000 (+0100) Subject: tp-contact-factory: allow _get_from_handles to call with no handles. X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=b65f80f53709c7dd9235612d7277c282f9193e81 tp-contact-factory: allow _get_from_handles to call with no handles. Signed-off-by: Jonny Lamb --- diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c index 6b4c20b5..c990b92f 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);