From 07df2cf12ae588877aba92292b6b162b57d6d29b Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 19 Sep 2018 15:45:27 +0200 Subject: [PATCH] Add a null check in nsHttpTransaction::Close. This resolves #776. --- netwerk/protocol/http/nsHttpTransaction.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/netwerk/protocol/http/nsHttpTransaction.cpp b/netwerk/protocol/http/nsHttpTransaction.cpp index 8d837d1723..76e0a4ad9c 100644 --- a/netwerk/protocol/http/nsHttpTransaction.cpp +++ b/netwerk/protocol/http/nsHttpTransaction.cpp @@ -1164,7 +1164,9 @@ nsHttpTransaction::Close(nsresult reason) } // closing this pipe triggers the channel's OnStopRequest method. - mPipeOut->CloseWithStatus(reason); + if (mPipeOut) { + mPipeOut->CloseWithStatus(reason); + } #ifdef WIN32 // bug 1153929 MOZ_DIAGNOSTIC_ASSERT(mPipeOut);