From a60c3f37361f5ce5d1b108286ab502232360c522 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 25 Sep 2009 00:53:58 -0400 Subject: Bug 596268 - Crash when sidebar was clicked while 'loading' --- modules/mail/e-mail-shell-sidebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/mail/e-mail-shell-sidebar.c') diff --git a/modules/mail/e-mail-shell-sidebar.c b/modules/mail/e-mail-shell-sidebar.c index 7d98f74558..b0e53c2d49 100644 --- a/modules/mail/e-mail-shell-sidebar.c +++ b/modules/mail/e-mail-shell-sidebar.c @@ -535,7 +535,7 @@ mail_shell_sidebar_check_state (EShellSidebar *shell_sidebar) COL_UINT_FLAGS, &folder_flags, COL_STRING_URI, &uri, -1); - if (!is_store) { + if (!is_store && full_name != NULL) { is_junk = (strcmp (full_name, CAMEL_VJUNK_NAME) == 0); is_trash = (strcmp (full_name, CAMEL_VTRASH_NAME) == 0); allows_children = !(is_junk || is_trash); -- cgit v1.2.3