1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

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
parent 5a03a408a8
commit 07df2cf12a
+3 -1
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);