Add a try/catch around a method call in HandleMDNResponse to catch a weird JS error I have not tracked down yet.

This commit is contained in:
scott%scott-macgregor.org 2003-11-30 20:36:18 +00:00
Родитель b48eebc59d
Коммит 1b51f27fa6
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -2159,7 +2159,13 @@ function HandleMDNResponse(aUrl)
return;
var msgHdr = messenger.messageServiceFromURI(msgURI).messageURIToMsgHdr(msgURI);
var mimeHdr = aUrl.mimeHeaders;
var mimeHdr;
try
{
mimeHdr = aUrl.mimeHeaders;
}
catch (ex) { dump('i don't understand how this can happen. mailWindowOverlay.js, HandleMDNResponse\n'); return 0; }
// If we didn't get the message id when we downloaded the message header,
// we cons up an md5: message id. If we've done that, we'll try to extract