Add a null check in nsHttpTransaction::Close.

This resolves #776.
This commit is contained in:
wolfbeast 2018-09-19 15:45:27 +02:00 committed by Roy Tam
commit 07df2cf12a

View file

@ -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);