diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-09-19 15:45:27 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-09-19 15:45:27 +0200 |
commit | d74daef060ac69778a28e9e7f75f6c60c1730056 (patch) | |
tree | 75f72321f6bbe12f26f4ae5528572ad6b71e51c4 /netwerk | |
parent | 10e5a761fec75df43a0d484f80b3863e3843f4f9 (diff) | |
download | aura-central-d74daef060ac69778a28e9e7f75f6c60c1730056.tar.gz |
Add a null check in nsHttpTransaction::Close.
This resolves %776.
Diffstat (limited to 'netwerk')
-rw-r--r-- | netwerk/protocol/http/nsHttpTransaction.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); |