Index: plugins/groupwise-features/mail-send-options.c
===================================================================
--- plugins/groupwise-features/mail-send-options.c	(revision 34006)
+++ plugins/groupwise-features/mail-send-options.c	(working copy)
@@ -146,6 +146,9 @@
 	char *temp = NULL;
 	
 	account = e_msg_composer_get_preferred_account (comp) ;
+	if (!account)
+		return;
+
 	temp = strstr (account->transport->url, "groupwise") ;
 	if (!temp) {
 		return;
Index: plugins/groupwise-features/ChangeLog
===================================================================
--- plugins/groupwise-features/ChangeLog	(revision 34006)
+++ plugins/groupwise-features/ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2007-08-15  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #466548
+
+	* mail-send-options.c: (org_gnome_composer_send_options):
+	e_msg_composer_get_preferred_account can return NULL, so test for it.
+
 2007-08-13  Sankar P  <psankar@novell.com>
 
 	** Fix for bug #330968
Index: plugins/exchange-operations/exchange-mail-send-options.c
===================================================================
--- plugins/exchange-operations/exchange-mail-send-options.c	(revision 34006)
+++ plugins/exchange-operations/exchange-mail-send-options.c	(working copy)
@@ -168,6 +168,9 @@
 	char *temp = NULL;
 	
 	account = e_msg_composer_get_preferred_account (composer);
+	if (!account)
+		return;
+
 	temp = strstr (account->transport->url, "exchange");
 	if (!temp) {
 		return;
Index: plugins/exchange-operations/ChangeLog
===================================================================
--- plugins/exchange-operations/ChangeLog	(revision 34006)
+++ plugins/exchange-operations/ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2007-08-15  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #466548
+
+	* exchange-mail-send-options.c: (org_gnome_exchange_send_options):
+	e_msg_composer_get_preferred_account can return NULL, so test for it.
+
 2007-08-10  Milan Crha  <mcrha@redhat.com>
 
 	** Fix for bug #327977
Index: mail/ChangeLog
===================================================================
--- mail/ChangeLog	(revision 34006)
+++ mail/ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2007-08-15  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #466548
+
+	* em-composer-utils.c: (em_utils_composer_send_cb):
+	e_msg_composer_get_preferred_account can return NULL, so test for it.
+
 2007-08-13  Milan Crha  <mcrha@redhat.com>
 
 	** Fix for bug #352346
Index: mail/em-composer-utils.c
===================================================================
--- mail/em-composer-utils.c	(revision 34006)
+++ mail/em-composer-utils.c	(working copy)
@@ -414,7 +414,7 @@
 	EAccount *account;
 
 	account = e_msg_composer_get_preferred_account (composer);
-	if (!account->enabled) {
+	if (!account || !account->enabled) {
 		e_error_run((GtkWindow *)composer, "mail:send-no-account-enabled", NULL);
 		return;
 	}
