Closed Bug 60723 Opened 25 years ago Closed 25 years ago

missing check for null in nsInputStreamChannel

Categories

(Core :: Networking, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: dougt, Assigned: dougt)

Details

Index: nsInputStreamChannel.cpp =================================================================== RCS file: /cvsroot/mozilla/netwerk/base/src/nsInputStreamChannel.cpp,v retrieving revision 1.44 diff -u -r1.44 nsInputStreamChannel.cpp --- nsInputStreamChannel.cpp 2000/09/08 00:19:15 1.44 +++ nsInputStreamChannel.cpp 2000/11/20 06:18:30 @@ -616,8 +616,10 @@ { nsresult rv; - rv = mUserObserver->OnStopRequest(this, context, aStatus, aStatusArg); - if (NS_FAILED(rv)) return rv; + if (mUserObserver) { + rv = mUserObserver->OnStopRequest(this, context, aStatus, aStatusArg); + if (NS_FAILED(rv)) return rv; + } if (mLoadGroup) { if (NS_SUCCEEDED(rv)) { Jud can you review? gagan can you super review?
Summary: Check for null → missing check for null in nsInputStreamChannel
fix checed in.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
QA Contact: tever → benc
You need to log in before you can comment on or make changes to this bug.