From d86153fdd4118874035bd9ba69d9d405414ddd53 Mon Sep 17 00:00:00 2001 From: "robertshield@google.com" Date: Mon, 18 May 2009 21:10:52 +0000 Subject: 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 --- chrome/browser/external_tab_container.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(details).ptr(); - if (PageTransition::IsMainFrame(load->origin())) { + if (load != NULL && PageTransition::IsMainFrame(load->origin())) { automation_->Send(new AutomationMsg_TabLoaded(0, tab_handle_, load->url())); } -- cgit v1.1