From d4abc5ead52efb1350d6edc1374bec5d8d95942e Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Tue, 22 Jun 1999 20:28:28 +0000 Subject: [PATCH] fix 8619 malformed message problem --- mailnews/local/src/nsParseMailbox.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mailnews/local/src/nsParseMailbox.cpp b/mailnews/local/src/nsParseMailbox.cpp index 62c09fd418bd..c29aa78a8231 100644 --- a/mailnews/local/src/nsParseMailbox.cpp +++ b/mailnews/local/src/nsParseMailbox.cpp @@ -1114,7 +1114,8 @@ int nsParseMailMessageState::FinalizeHeaders() NS_ASSERTION(offset < 10000, "invalid status offset"); /* ### Debugging hack */ } } - m_newMsgHdr->SetAuthor(sender->value); + if (sender) + m_newMsgHdr->SetAuthor(sender->value); if (recipient == &m_newsgroups) { /* In the case where the recipient is a newsgroup, truncate the string @@ -1134,7 +1135,7 @@ int nsParseMailMessageState::FinalizeHeaders() } m_newMsgHdr->SetRecipients(recipient->value, FALSE); } - else + else if (recipient) { // note that we're now setting the whole recipient list, // not just the pretty name of the first recipient.