summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_glue.cc
diff options
context:
space:
mode:
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();