[evolution/wip/gsettings] Bug #651316 - Crash with Outgoing mail filters



commit ef4a4446d04ea736821f0806de2c3de78382292e
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jun 3 13:51:07 2011 +0200

    Bug #651316 - Crash with Outgoing mail filters

 mail/e-mail-session-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mail/e-mail-session-utils.c b/mail/e-mail-session-utils.c
index 573fd5f..0827092 100644
--- a/mail/e-mail-session-utils.c
+++ b/mail/e-mail-session-utils.c
@@ -771,7 +771,7 @@ e_mail_session_send_to (EMailSession *session,
 	/* Failure here emits a runtime warning but is non-fatal. */
 	context->driver = camel_session_get_filter_driver (
 		CAMEL_SESSION (session), E_FILTER_SOURCE_OUTGOING, &error);
-	if (context->driver != NULL)
+	if (context->driver != NULL && get_folder_func)
 		camel_filter_driver_set_folder_func (
 			context->driver, get_folder_func, get_folder_data);
 	if (error != NULL) {



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