Added an if check around the call out through the event sink...

This commit is contained in:
rpotts%netscape.com 1999-06-16 09:50:30 +00:00
Родитель ce2c24bc6a
Коммит 53ea579cb6
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -281,7 +281,9 @@ nsresult nsHTTPResponseListener::FireOnHeadersAvailable(nsISupports* aContext)
// Notify the event sink that response headers are available...
nsIHTTPEventSink* pSink= nsnull;
m_pConnection->GetEventSink(&pSink);
pSink->OnHeadersAvailable(aContext);
if (pSink) {
pSink->OnHeadersAvailable(aContext);
}
// Check for any modules that want to receive headers once they've arrived.
NS_WITH_SERVICE(nsINetModuleMgr, pNetModuleMgr, kNetModuleMgrCID, &rv);