]> git.0d.be Git - empathy.git/commitdiff
Do not crash if there is no salut profile installed
authorXavier Claessens <xclaesse@src.gnome.org>
Mon, 18 Aug 2008 21:36:45 +0000 (21:36 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 18 Aug 2008 21:36:45 +0000 (21:36 +0000)
svn path=/trunk/; revision=1342

src/empathy.c

index a14873f32c757c6887c8e804750796200ef5b792..15781d9292ccad62b81e6a301ebd9a873ff8bccd 100644 (file)
@@ -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");