From 3677c23545f7e549c72096112159eecd895a4270 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 6 Jul 2007 22:10:54 +0000 Subject: Workaround to fix a commonly reported crash. Add a missing check. 2007-07-07 Xavier Claessens * libempathy-gtk/empathy-account-widget-generic.c: Workaround to fix a commonly reported crash. * libempathy/empathy-tp-group.c: Add a missing check. svn path=/trunk/; revision=177 --- libempathy-gtk/empathy-account-widget-generic.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-account-widget-generic.c b/libempathy-gtk/empathy-account-widget-generic.c index 73b579a55..1ba38f7fb 100644 --- a/libempathy-gtk/empathy-account-widget-generic.c +++ b/libempathy-gtk/empathy-account-widget-generic.c @@ -251,6 +251,17 @@ accounts_widget_generic_setup (EmpathyAccountWidgetGeneric *settings) profile = mc_account_get_profile (settings->account); protocol = mc_profile_get_protocol (profile); + + if (!protocol) { + /* The CM is not installed, MC shouldn't list them + * see SF bug #1688779 + * FIXME: We should display something asking the user to + * install the CM + */ + g_object_unref (profile); + return; + } + params = mc_protocol_get_params (protocol); g_slist_foreach (params, -- cgit v1.2.3