From 910ba461ca87a40407603b31b37e361520626cfc Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 18 Aug 2008 21:36:45 +0000 Subject: Do not crash if there is no salut profile installed svn path=/trunk/; revision=1342 --- src/empathy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/empathy.c b/src/empathy.c index a14873f32..15781d929 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -210,6 +210,10 @@ create_salut_account (void) /* Check if the salut CM is installed */ profile = mc_profile_lookup ("salut"); + if (!profile) { + DEBUG ("No salut profile"); + return; + } protocol = mc_profile_get_protocol (profile); if (!protocol) { DEBUG ("Salut not installed"); -- cgit v1.2.3