Bug 1272988 - Check for null when detecting outgoing invitations;r=philipp

This commit is contained in:
makemyday@gmx-topmail.de 2016-05-15 19:55:32 +02:00
Родитель 6b99f322f3
Коммит 071b88aaea
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -207,6 +207,9 @@ var ltnImipBar = {
// Thunderbird doesn't provide a distinct flag on message level to do so. Relying on // Thunderbird doesn't provide a distinct flag on message level to do so. Relying on
// folder flags only may lead to false positives. // folder flags only may lead to false positives.
let isOutgoing = function(aMsgHdr) { let isOutgoing = function(aMsgHdr) {
if (!aMsgHdr) {
return false;
}
let author = aMsgHdr.mime2DecodedAuthor; let author = aMsgHdr.mime2DecodedAuthor;
let isSentFolder = aMsgHdr.folder.flags & nsMsgFolderFlags.SentMail; let isSentFolder = aMsgHdr.folder.flags & nsMsgFolderFlags.SentMail;
if (author && isSentFolder) { if (author && isSentFolder) {