summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-18 21:10:52 +0000
committerrobertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-18 21:10:52 +0000
commitd86153fdd4118874035bd9ba69d9d405414ddd53 (patch)
tree0851967ab89421bbad667b201844050aa9c923d5
parent256e43f5af154eed4bbef574adb0ed29d988246e (diff)
downloadchromium_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.cc2
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()));
}