diff --git a/netwerk/protocol/http/HttpChannelChild.cpp b/netwerk/protocol/http/HttpChannelChild.cpp index af675dbec00d..bf9a32d159d1 100644 --- a/netwerk/protocol/http/HttpChannelChild.cpp +++ b/netwerk/protocol/http/HttpChannelChild.cpp @@ -1500,7 +1500,9 @@ HttpChannelChild::OverrideRunnable::Run() mCallback = nullptr; } mChannel->CleanupRedirectingChannel(rv); - mNewChannel->Cancel(rv); + if (mNewChannel) { + mNewChannel->Cancel(rv); + } return NS_OK; }