[evolution] Fix a runtime warning.



commit 9b18df6a81ed7f01672b1fa53cbeb1de3dc4dde2
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Sep 4 12:37:10 2009 -0400

    Fix a runtime warning.

 modules/mail/e-mail-shell-view-private.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c
index 849efe6..7f48329 100644
--- a/modules/mail/e-mail-shell-view-private.c
+++ b/modules/mail/e-mail-shell-view-private.c
@@ -489,7 +489,9 @@ e_mail_shell_view_restore_state (EMailShellView *mail_shell_view)
 	reader = E_MAIL_READER (shell_content);
 	message_list = e_mail_reader_get_message_list (reader);
 	folder_uri = message_list->folder_uri;
-	g_return_if_fail (folder_uri != NULL);
+
+	if (folder_uri == NULL)
+		return;
 
 	group_name = g_strdup_printf ("Folder %s", folder_uri);
 	e_shell_content_restore_state (shell_content, group_name);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]