diff options
Diffstat (limited to 'mail/em-message-browser.c')
-rw-r--r-- | mail/em-message-browser.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/em-message-browser.c b/mail/em-message-browser.c index a23e872b6a..4050f0b9ea 100644 --- a/mail/em-message-browser.c +++ b/mail/em-message-browser.c @@ -160,7 +160,7 @@ emmb_list_message_selected (struct _MessageList *ml, const char *uid, EMMessageB EMFolderView *emfv = (EMFolderView *) emmb; CamelMessageInfo *info; - if ((info = camel_folder_get_message_info (emfv->folder, uid))) { + if (uid && (info = camel_folder_get_message_info (emfv->folder, uid))) { gtk_window_set_title ((GtkWindow *) emmb->window, camel_message_info_subject (info)); gtk_widget_grab_focus ((GtkWidget *) (emmb->view.preview->formathtml.html)); camel_folder_free_message_info (emfv->folder, info); @@ -233,6 +233,9 @@ emmb_set_message(EMFolderView *emfv, const char *uid) emmb_parent->set_message(emfv, uid); + if (uid == NULL) + return; + if ((info = camel_folder_get_message_info (emfv->folder, uid))) { gtk_window_set_title ((GtkWindow *) emmb->window, camel_message_info_subject (info)); camel_folder_free_message_info (emfv->folder, info); |