summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_glue.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 00:10:35 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 00:10:35 +0000
commite5765e2a9d67531a950c37b550838face00ff2c4 (patch)
tree5378859a97ea8750ff07db7b23a4575e9309707f /chrome/renderer/renderer_glue.cc
parent0f44d3e778979b6f1acae43a39e4b4bf9d557c8b (diff)
downloadchromium_src-e5765e2a9d67531a950c37b550838face00ff2c4.zip
chromium_src-e5765e2a9d67531a950c37b550838face00ff2c4.tar.gz
chromium_src-e5765e2a9d67531a950c37b550838face00ff2c4.tar.bz2
Temp fix for reliablity crashes.
Review URL: http://codereview.chromium.org/46017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_glue.cc')
-rw-r--r--chrome/renderer/renderer_glue.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc
index 3774d13..997748a 100644
--- a/chrome/renderer/renderer_glue.cc
+++ b/chrome/renderer/renderer_glue.cc
@@ -249,6 +249,9 @@ ResourceLoaderBridge* ResourceLoaderBridge::Create(
return NULL;
}
+ if (!webframe->GetView()->GetDelegate())
+ return NULL;
+
RenderView* rv = static_cast<RenderView*>(webframe->GetView()->GetDelegate());
int route_id = rv->routing_id();
ResourceDispatcher* dispatch = RenderThread::current()->resource_dispatcher();