Index: content/renderer/render_view.cc |
diff --git a/content/renderer/render_view.cc b/content/renderer/render_view.cc |
index 2def6db25e21015eacc0404d9c62a793d4ac0bcf..fc83a1daef2e9c2a2da665225f231880f3672ff5 100644 |
--- a/content/renderer/render_view.cc |
+++ b/content/renderer/render_view.cc |
@@ -3279,7 +3279,7 @@ void RenderView::EvaluateScript(const string16& frame_xpath, |
result = web_frame->executeScriptAndReturnValue(WebScriptSource(script)); |
if (notify_result) { |
ListValue list; |
- if (web_frame) { |
+ if (!result.IsEmpty() && web_frame) { |
v8::HandleScope handle_scope; |
v8::Local<v8::Context> context = web_frame->mainWorldScriptContext(); |
v8::Context::Scope context_scope(context); |