aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index c1fb66c39e..02ebc4a853 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -522,6 +522,9 @@ message_list_select_uid (MessageList *message_list, const char *uid)
{
ETreePath node;
+ if (message_list->folder == NULL)
+ return;
+
if (message_list->regen) {
g_free(message_list->pending_select_uid);
message_list->pending_select_uid = g_strdup(uid);