From 678735026fd4a34926d179171640f614523cd253 Mon Sep 17 00:00:00 2001 From: "morse%netscape.com" Date: Wed, 25 Oct 2000 18:14:23 +0000 Subject: [PATCH] bug 57840, tre blocker, r=gagan,don git-svn-id: svn://10.0.0.236/trunk@81744 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/protocol/http/src/nsHTTPChannel.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mozilla/netwerk/protocol/http/src/nsHTTPChannel.cpp b/mozilla/netwerk/protocol/http/src/nsHTTPChannel.cpp index 7ad91a2e7ca..04a91ef0390 100644 --- a/mozilla/netwerk/protocol/http/src/nsHTTPChannel.cpp +++ b/mozilla/netwerk/protocol/http/src/nsHTTPChannel.cpp @@ -1766,11 +1766,13 @@ nsresult nsHTTPChannel::Redirect(const char *aNewLocation, rv = channel->SetOriginalURI(mOriginalURI); if (NS_FAILED(rv)) return rv; - nsCOMPtr tempChannel; - rv = mLoadGroup->GetDefaultLoadChannel(getter_AddRefs(tempChannel)); - if (NS_SUCCEEDED(rv)) { - if (tempChannel == this) { - mLoadGroup->SetDefaultLoadChannel(channel); + if (mLoadGroup) { + nsCOMPtr tempChannel; + rv = mLoadGroup->GetDefaultLoadChannel(getter_AddRefs(tempChannel)); + if (NS_SUCCEEDED(rv)) { + if (tempChannel == this) { + mLoadGroup->SetDefaultLoadChannel(channel); + } } }