From 4b90811978c29d8dae05c8b4bc76d8616e8d73c4 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 19 Sep 2018 15:45:27 +0200 Subject: Add a null check in nsHttpTransaction::Close. This resolves #776. --- netwerk/protocol/http/nsHttpTransaction.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'netwerk') diff --git a/netwerk/protocol/http/nsHttpTransaction.cpp b/netwerk/protocol/http/nsHttpTransaction.cpp index 8d837d172..76e0a4ad9 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); -- cgit v1.2.3