mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 02:27:39 +00:00
Handle null isolate case in service tracing
BUG= Review URL: https://codereview.chromium.org//1315243002 .
This commit is contained in:
parent
c9a4013553
commit
00d96fbd03
|
@ -737,10 +737,13 @@ void Service::PostEvent(const char* stream_id,
|
|||
|
||||
if (FLAG_trace_service) {
|
||||
Isolate* isolate = Isolate::Current();
|
||||
ASSERT(isolate != NULL);
|
||||
const char* isolate_name = "<no current isolate>";
|
||||
if (isolate != NULL) {
|
||||
isolate_name = isolate->name();
|
||||
}
|
||||
OS::Print(
|
||||
"vm-service: Pushing event of type %s to stream %s (%s)\n",
|
||||
kind, stream_id, isolate->name());
|
||||
kind, stream_id, isolate_name);
|
||||
}
|
||||
|
||||
Dart_PostCObject(ServiceIsolate::Port(), &list_cobj);
|
||||
|
|
Loading…
Reference in a new issue