aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 62590689bb..9304adda5c 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -659,8 +659,9 @@ folder_tree_cell_edited_cb (EMFolderTree *folder_tree,
e_alert_run_dialog_for_args (
parent, "mail:no-rename-folder",
old_full_name, new_full_name,
- local_error->message, NULL);
- g_clear_error (&local_error);
+ local_error ? local_error->message : _("Unknown error"), NULL);
+ if (local_error)
+ g_clear_error (&local_error);
goto exit;
}