fix 49903 crash posting empty news message r=ducarroz

This commit is contained in:
bienvenu%netscape.com 2000-08-24 00:58:04 +00:00
Родитель a60ab99074
Коммит 3d62f2d5a7
1 изменённых файлов: 15 добавлений и 1 удалений

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

@ -2996,7 +2996,21 @@ nsMsgComposeAndSend::DoDeliveryExitProcessing(nsIURI * aUri, nsresult aExitCode,
// so try to use the prompt interface associated with the smtp url...
nsCOMPtr<nsISmtpUrl> smtpUrl (do_QueryInterface(aUri));
nsCOMPtr<nsIPrompt> prompt;
smtpUrl->GetPrompt(getter_AddRefs(prompt));
if (smtpUrl)
{
smtpUrl->GetPrompt(getter_AddRefs(prompt));
}
else
{
nsCOMPtr <nsIMsgMailNewsUrl> mailnewsUrl (do_QueryInterface(aUri));
if (mailnewsUrl)
{
nsCOMPtr <nsIMsgWindow> msgWindow;
mailnewsUrl->GetMsgWindow(getter_AddRefs(msgWindow));
if (msgWindow)
msgWindow->GetPromptDialog(getter_AddRefs(prompt));
}
}
Fail(prompt, aExitCode, eMsg);
NotifyListenersOnStopSending(nsnull, aExitCode, nsnull, nsnull);
return;