| Index: runtime/vm/log.cc
|
| diff --git a/runtime/vm/log.cc b/runtime/vm/log.cc
|
| index 91be51d604faf0c502a899e967d8291053642a52..f5247c7981aafb47d5a67767e88b0d7613d028cc 100644
|
| --- a/runtime/vm/log.cc
|
| +++ b/runtime/vm/log.cc
|
| @@ -31,6 +31,11 @@ Log::~Log() {
|
|
|
| Log* Log::Current() {
|
| Thread* thread = Thread::Current();
|
| + if (thread == NULL) {
|
| + OSThread* os_thread = OSThread::Current();
|
| + ASSERT(os_thread != NULL);
|
| + return os_thread->log();
|
| + }
|
| Isolate* isolate = thread->isolate();
|
| if (isolate != NULL && Log::ShouldLogForIsolate(isolate)) {
|
| OSThread* os_thread = thread->os_thread();
|
|
|