aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index ee9de6d195..f26380773a 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -211,7 +211,7 @@ send_queued_mail (GtkWidget *widget, gpointer user_data)
}
account = mail_config_get_default_account ();
- if (!account->transport) {
+ if (!account || !account->transport) {
GtkWidget *win = gtk_widget_get_ancestor (GTK_WIDGET (user_data),
GTK_TYPE_WINDOW);