fix 49903 crash posting empty news message r=mscott

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

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

@ -556,6 +556,9 @@ NS_IMETHODIMP nsNNTPProtocol::Initialize(nsIURI * aURL, nsIMsgWindow *aMsgWindow
m_connectionBusy = PR_TRUE;
if (NS_SUCCEEDED(rv) && m_runningURL)
{
nsCOMPtr<nsIMsgMailNewsUrl> mailnewsUrl = do_QueryInterface(m_runningURL);
if (mailnewsUrl)
mailnewsUrl->SetMsgWindow(aMsgWindow);
// okay, now fill in our event sinks...Note that each getter ref counts before
// it returns the interface to us...we'll release when we are done
m_runningURL->GetNewsgroupList(getter_AddRefs(m_newsgroupList));