[empathy] tp-contact-factory: allow _get_from_handles to call with no handles.
- From: Jonny Lamb <jonnylamb src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] tp-contact-factory: allow _get_from_handles to call with no handles.
- Date: Sun, 6 Sep 2009 16:38:48 +0000 (UTC)
commit b65f80f53709c7dd9235612d7277c282f9193e81
Author: Jonny Lamb <jonny lamb collabora co uk>
Date: Sun Sep 6 17:34:04 2009 +0100
tp-contact-factory: allow _get_from_handles to call with no handles.
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
libempathy/empathy-tp-contact-factory.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c
index 6b4c20b..c990b92 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]