From bafc20f876b6a70a5bee326eb388f6a057143112 Mon Sep 17 00:00:00 2001 From: nharper Date: Thu, 24 Mar 2016 17:40:17 -0700 Subject: Fix crash in URLRequestHttpJob::OnStartCompleted BUG=548423 Review URL: https://codereview.chromium.org/1833803002 Cr-Commit-Position: refs/heads/master@{#383207} --- net/url_request/url_request_http_job.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc index add9ed1..9cc0209 100644 --- a/net/url_request/url_request_http_job.cc +++ b/net/url_request/url_request_http_job.cc @@ -1017,8 +1017,10 @@ void URLRequestHttpJob::OnStartCompleted(int result) { return; } } - LogChannelIDAndCookieStores(request_->url(), request_->context(), - transaction_->GetResponseInfo()->ssl_info); + if (transaction_ && transaction_->GetResponseInfo()) { + LogChannelIDAndCookieStores(request_->url(), request_->context(), + transaction_->GetResponseInfo()->ssl_info); + } SaveCookiesAndNotifyHeadersComplete(OK); } else if (IsCertificateError(result)) { -- cgit v1.1