diff options
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r-- | mail/mail-component.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c index 3bb6ffbbba..46c48b5516 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -183,7 +183,10 @@ enable_folder_tree (GtkWidget *emfb, GtkWidget *emft) /* Get the selected folder in the folder tree. */ selected_folder = em_folder_tree_get_selected_folder(EM_FOLDER_TREE (emft)); - uri = mail_tools_folder_to_url (selected_folder); + if (selected_folder) + uri = mail_tools_folder_to_url (selected_folder); + else + uri = NULL; selected_curl = uri ? camel_url_new (uri, NULL) : NULL; |