Bug 551990 - Crash [@ nsHttpResponseHead::NoStore()] in test_updatingManifest.html, r=biesi

This commit is contained in:
timeless@mozdev.org 2010-03-14 06:55:00 -07:00
parent 197861d0b9
commit 3497436378

View File

@ -2504,11 +2504,13 @@ nsHttpChannel::InitCacheEntry()
nsresult
nsHttpChannel::InitOfflineCacheEntry()
{
// This function can be called even when we fail to connect (bug 551990)
if (!mOfflineCacheEntry) {
return NS_OK;
}
if (mResponseHead->NoStore()) {
if (mResponseHead && mResponseHead->NoStore()) {
CloseOfflineCacheEntry();
return NS_OK;