From 42904d799377d856cb13363eb2f1530b71d8762f Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 26 Feb 2001 00:00:32 +0000 Subject: Abort if the message is NULL (which is valid if an error occured). 2001-02-25 Jeffrey Stedfast * mail-callbacks.c (composer_postpone_cb): Abort if the message is NULL (which is valid if an error occured). (composer_send_cb): Same. svn path=/trunk/; revision=8389 --- mail/ChangeLog | 6 ++++++ mail/mail-callbacks.c | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 41ffe07771..5b06e15d96 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-02-25 Jeffrey Stedfast + + * mail-callbacks.c (composer_postpone_cb): Abort if the message is + NULL (which is valid if an error occured). + (composer_send_cb): Same. + 2001-02-24 Jeffrey Stedfast * folder-browser.c: Toss the mail_tool_camel_lock* stuff. diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 4afabc13c0..ca4a484ef3 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -301,6 +301,8 @@ composer_send_cb (EMsgComposer *composer, gpointer data) /* Get the message */ message = e_msg_composer_get_message (composer); + if (message == NULL) + return; /* Check for no recipients */ iaddr = camel_mime_message_get_recipients (message, CAMEL_RECIPIENT_TYPE_TO); @@ -347,6 +349,8 @@ composer_postpone_cb (EMsgComposer *composer, gpointer data) /* Get the message */ message = e_msg_composer_get_message (composer); + if (message == NULL) + return; /* Check for no subject */ subject = camel_mime_message_get_subject (message); -- cgit