Bug 1272988 - Check for null when detecting outgoing invitations;r=philipp
This commit is contained in:
Родитель
6b99f322f3
Коммит
071b88aaea
|
@ -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) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче