From 0a9fd8a0a7517f099ca1b908679ab7935513cd9a Mon Sep 17 00:00:00 2001 From: Chandni Verma Date: Fri, 11 Mar 2011 07:53:15 +0530 Subject: Initialize EmpathyContactManager before creating a new contact->Block menuitem --- libempathy-gtk/empathy-contact-menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c index 64825b43c..7f3091a9b 100644 --- a/libempathy-gtk/empathy-contact-menu.c +++ b/libempathy-gtk/empathy-contact-menu.c @@ -278,11 +278,12 @@ empathy_contact_block_menu_item_new (EmpathyContact *contact) g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL); + manager = empathy_contact_manager_dup_singleton (); + if (!empathy_contact_manager_initialized ()) { return NULL; } - manager = empathy_contact_manager_dup_singleton (); connection = empathy_contact_get_connection (contact); flags = empathy_contact_manager_get_flags_for_connection (manager, -- cgit v1.2.3