Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Unified Diff: vm/debugger_api_impl.cc

Issue 11043003: Fix dartium build break. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/debugger_api_impl.cc
===================================================================
--- vm/debugger_api_impl.cc (revision 13131)
+++ vm/debugger_api_impl.cc (working copy)
@@ -133,11 +133,17 @@
reinterpret_cast<Dart_StackTrace>(isolate->debugger()->StackTrace());
(*exc_thrown_handler)(exception, trace);
} else if (event->type == Debugger::kIsolateCreated) {
- (*isolate_event_handler)(Api::CastIsolate(event->isolate), kCreated);
+ if (isolate_event_handler != NULL) {
+ (*isolate_event_handler)(Api::CastIsolate(event->isolate), kCreated);
+ }
} else if (event->type == Debugger::kIsolateInterrupted) {
- (*isolate_event_handler)(Api::CastIsolate(event->isolate), kInterrupted);
+ if (isolate_event_handler != NULL) {
+ (*isolate_event_handler)(Api::CastIsolate(event->isolate), kInterrupted);
+ }
} else if (event->type == Debugger::kIsolateShutdown) {
- (*isolate_event_handler)(Api::CastIsolate(event->isolate), kShutdown);
+ if (isolate_event_handler != NULL) {
+ (*isolate_event_handler)(Api::CastIsolate(event->isolate), kShutdown);
+ }
} else {
UNIMPLEMENTED();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698