aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-03-21 00:36:54 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-21 00:36:54 +0800
commite9d5b4bf6fcc74d1ceeafc758ebc57765d9e8b91 (patch)
tree914d57170f2dae07bea077c8a40996593a72aac8 /src
parent91ade18d53a81dc8d913f91506f7df07f6fa855b (diff)
downloadgsoc2013-empathy-e9d5b4bf6fcc74d1ceeafc758ebc57765d9e8b91.tar
gsoc2013-empathy-e9d5b4bf6fcc74d1ceeafc758ebc57765d9e8b91.tar.gz
gsoc2013-empathy-e9d5b4bf6fcc74d1ceeafc758ebc57765d9e8b91.tar.bz2
gsoc2013-empathy-e9d5b4bf6fcc74d1ceeafc758ebc57765d9e8b91.tar.lz
gsoc2013-empathy-e9d5b4bf6fcc74d1ceeafc758ebc57765d9e8b91.tar.xz
gsoc2013-empathy-e9d5b4bf6fcc74d1ceeafc758ebc57765d9e8b91.tar.zst
gsoc2013-empathy-e9d5b4bf6fcc74d1ceeafc758ebc57765d9e8b91.zip
mc_account_create can fail, don't crash if it happens
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2731
Diffstat (limited to 'src')
-rw-r--r--src/empathy-import-dialog.c5
1 files changed, 5 insertions, 0 deletions
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))