aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-07-26 03:14:03 +0800
committerPeter Williams <peterw@src.gnome.org>2000-07-26 03:14:03 +0800
commit43ef719142fe37dc8aa8c9ae32d8f44002036aaf (patch)
tree846da72b2d3afb1d0180bbbdb3efd5bba934414c /mail
parentdffee3727463f7b84cd97f650cc3adc1b36aa81d (diff)
downloadgsoc2013-evolution-43ef719142fe37dc8aa8c9ae32d8f44002036aaf.tar
gsoc2013-evolution-43ef719142fe37dc8aa8c9ae32d8f44002036aaf.tar.gz
gsoc2013-evolution-43ef719142fe37dc8aa8c9ae32d8f44002036aaf.tar.bz2
gsoc2013-evolution-43ef719142fe37dc8aa8c9ae32d8f44002036aaf.tar.lz
gsoc2013-evolution-43ef719142fe37dc8aa8c9ae32d8f44002036aaf.tar.xz
gsoc2013-evolution-43ef719142fe37dc8aa8c9ae32d8f44002036aaf.tar.zst
gsoc2013-evolution-43ef719142fe37dc8aa8c9ae32d8f44002036aaf.zip
Fix crash on NULL current_message when replying.
svn path=/trunk/; revision=4319
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-ops.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 0a6f1293c8..856d75798c 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2000-07-25 Peter Williams <peterw@helixcode.com>
+
+ * mail-ops.c (reply): Check for the case of fb->mail_display->
+ current_message = NULL, which shouldn't happen, but has happened
+ to me.
+
2000-07-25 Dan Winship <danw@helixcode.com>
* message-thread.c (group_root_set): Don't group together messages
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 5fa1f0953b..9602d8dcd6 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -635,7 +635,8 @@ reply (FolderBrowser *fb, gboolean to_all)
EMsgComposer *composer;
struct post_send_data *psd;
- if (!check_configured () || !fb->message_list->cursor_uid)
+ if (!check_configured () || !fb->message_list->cursor_uid ||
+ !fb->mail_display->current_message)
return;
psd = g_new (struct post_send_data, 1);