]> git.0d.be Git - empathy.git/commitdiff
tp-contact-factory: allow _get_from_handles to call with no handles.
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Sun, 6 Sep 2009 16:34:04 +0000 (17:34 +0100)
committerJonny Lamb <jonny.lamb@collabora.co.uk>
Sun, 6 Sep 2009 16:38:38 +0000 (17:38 +0100)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
libempathy/empathy-tp-contact-factory.c

index 6b4c20b5376a19ba1be7647bc30f9c3706ccd268..c990b92f4afa36a8f92fbb0f4bcc2151724ff5aa 100644 (file)
@@ -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);