diff options
author | robertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 21:10:52 +0000 |
---|---|---|
committer | robertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 21:10:52 +0000 |
commit | d86153fdd4118874035bd9ba69d9d405414ddd53 (patch) | |
tree | 0851967ab89421bbad667b201844050aa9c923d5 | |
parent | 256e43f5af154eed4bbef574adb0ed29d988246e (diff) | |
download | chromium_src-d86153fdd4118874035bd9ba69d9d405414ddd53.zip chromium_src-d86153fdd4118874035bd9ba69d9d405414ddd53.tar.gz chromium_src-d86153fdd4118874035bd9ba69d9d405414ddd53.tar.bz2 |
Fix unchecked pointer dereference that I stumbled across.
Review URL: http://codereview.chromium.org/115477
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16312 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/external_tab_container.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc index f71129e..cc0782f 100644 --- a/chrome/browser/external_tab_container.cc +++ b/chrome/browser/external_tab_container.cc @@ -268,7 +268,7 @@ void ExternalTabContainer::Observe(NotificationType type, case NotificationType::LOAD_STOP: { const LoadNotificationDetails* load = Details<LoadNotificationDetails>(details).ptr(); - if (PageTransition::IsMainFrame(load->origin())) { + if (load != NULL && PageTransition::IsMainFrame(load->origin())) { automation_->Send(new AutomationMsg_TabLoaded(0, tab_handle_, load->url())); } |