Index: src/debug.cc |
diff --git a/src/debug.cc b/src/debug.cc |
index 457531fa36cd3f768812e6c5a6a118d0395a9d8b..99256ba21a88a8510978e5578ab0c4f541982b0a 100644 |
--- a/src/debug.cc |
+++ b/src/debug.cc |
@@ -820,6 +820,9 @@ bool Debug::Load() { |
v8::Handle<ObjectTemplate>(), |
NULL); |
+ // Fail if no context could be created. |
+ if (context.is_null()) return false; |
+ |
// Use the debugger context. |
SaveContext save(isolate_); |
isolate_->set_context(*context); |