| Index: net/http/http_basic_stream.cc
|
| diff --git a/net/http/http_basic_stream.cc b/net/http/http_basic_stream.cc
|
| index c805d7cf9892f4dbff4daf49cbdcb4525243cdb9..312b927851b3d9f1f6d122c1e5e5ed973f0d9810 100644
|
| --- a/net/http/http_basic_stream.cc
|
| +++ b/net/http/http_basic_stream.cc
|
| @@ -49,7 +49,11 @@ int HttpBasicStream::ReadResponseBody(IOBuffer* buf,
|
| }
|
|
|
| void HttpBasicStream::Close(bool not_reusable) {
|
| - parser()->Close(not_reusable);
|
| + // parser() is null if |this| is created by an orphaned
|
| + // HttpStreamFactoryImpl::Job in which case InitializeStream() will not have
|
| + // been called.
|
| + if (parser())
|
| + parser()->Close(not_reusable);
|
| }
|
|
|
| HttpStream* HttpBasicStream::RenewStreamForAuth() {
|
|
|