diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-17 21:10:11 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-17 21:10:11 +0000 |
commit | 79aae917e52956a47aef1eb701987399b5de76d2 (patch) | |
tree | e33e9af8eb6036208f8e72bc2af443bc51e3ad08 /chrome/browser/automation | |
parent | 1cd87e7d86da069a9028f24307c93e285848e0e7 (diff) | |
download | chromium_src-79aae917e52956a47aef1eb701987399b5de76d2.zip chromium_src-79aae917e52956a47aef1eb701987399b5de76d2.tar.gz chromium_src-79aae917e52956a47aef1eb701987399b5de76d2.tar.bz2 |
Fix a dlog that could dereference a null pointer.
TEST=run automation tests.
BUG=non
Review URL: http://codereview.chromium.org/207017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26485 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r-- | chrome/browser/automation/url_request_automation_job.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/automation/url_request_automation_job.cc b/chrome/browser/automation/url_request_automation_job.cc index a585ad6..50683d2 100644 --- a/chrome/browser/automation/url_request_automation_job.cc +++ b/chrome/browser/automation/url_request_automation_job.cc @@ -317,8 +317,9 @@ void URLRequestAutomationJob::OnDataAvailable( void URLRequestAutomationJob::OnRequestEnd( int tab, int id, const URLRequestStatus& status) { - DLOG(INFO) << "URLRequestAutomationJob: " << - request_->url().spec() << " - request end. Status: " << status.status(); + DLOG(INFO) << "URLRequestAutomationJob: " + << request_ ? request_->url().spec().c_str() : "(null)" + << " - request end. Status: " << status.status(); // TODO(tommi): When we hit certificate errors, notify the delegate via // OnSSLCertificateError(). Right now we don't have the certificate |