aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-02-26 08:00:32 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-02-26 08:00:32 +0800
commit42904d799377d856cb13363eb2f1530b71d8762f (patch)
tree3687442f393dc817cf435c8f40c26911275d913b
parent802f47f2bf27e9c667b85ab30edb5799198cfaa8 (diff)
downloadgsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.tar
gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.tar.gz
gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.tar.bz2
gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.tar.lz
gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.tar.xz
gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.tar.zst
gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.zip
Abort if the message is NULL (which is valid if an error occured).
2001-02-25 Jeffrey Stedfast <fejj@ximian.com> * 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
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-callbacks.c4
2 files changed, 10 insertions, 0 deletions
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 <fejj@ximian.com>
+
+ * 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 <fejj@ximian.com>
* 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);