aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-utils.c
diff options
context:
space:
mode:
authorParthasarathi Susarla <sparthasarathi@novell.com>2006-02-02 13:14:15 +0800
committerParthasarathi Susarla <saps@src.gnome.org>2006-02-02 13:14:15 +0800
commit65a843e4d7f6ae5a209899e38b187f38070f1816 (patch)
treee2f85dbc51921ca8187cc348a0fbde92cf6aa106 /mail/em-composer-utils.c
parent3c2662fff1687bc4728a7c183d19f934025591a0 (diff)
downloadgsoc2013-evolution-65a843e4d7f6ae5a209899e38b187f38070f1816.tar.gz
gsoc2013-evolution-65a843e4d7f6ae5a209899e38b187f38070f1816.tar.zst
gsoc2013-evolution-65a843e4d7f6ae5a209899e38b187f38070f1816.zip
check if account is null before accessing it
2006-02-02 Parthasarathi Susarla <sparthasarathi@novell.com> * em-composer-utils.c: (em_utils_handle_receipt): check if account is null before accessing it svn path=/trunk/; revision=31399
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r--mail/em-composer-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index fe404a0d20..88269a4ccc 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1131,7 +1131,7 @@ em_utils_handle_receipt (CamelFolder *folder, const char *uid, CamelMimeMessage
addr++;
}
- if (account->receipt_policy == E_ACCOUNT_RECEIPT_ALWAYS
+ if (account && account->receipt_policy == E_ACCOUNT_RECEIPT_ALWAYS
|| (account->receipt_policy == E_ACCOUNT_RECEIPT_ASK
&& e_error_run (NULL, "mail:ask-receipt", addr, camel_mime_message_get_subject(msg)) == GTK_RESPONSE_YES))
em_utils_send_receipt(folder, msg);