From e9d5b4bf6fcc74d1ceeafc758ebc57765d9e8b91 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 20 Mar 2009 16:36:54 +0000 Subject: mc_account_create can fail, don't crash if it happens From: Xavier Claessens svn path=/trunk/; revision=2731 --- src/empathy-import-dialog.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/empathy-import-dialog.c b/src/empathy-import-dialog.c index 955e07b9c..58e4be6b8 100644 --- a/src/empathy-import-dialog.c +++ b/src/empathy-import-dialog.c @@ -99,6 +99,11 @@ import_dialog_add_account (EmpathyImportAccountData *data) GValue *username; account = mc_account_create (data->profile); + if (account == NULL) + { + DEBUG ("Failed to create account"); + return; + } g_hash_table_iter_init (&iter, data->settings); while (g_hash_table_iter_next (&iter, &key, &value)) -- cgit v1.2.3