Index: src/profiler/tick-sample.cc |
diff --git a/src/profiler/tick-sample.cc b/src/profiler/tick-sample.cc |
index e51f939e835e8cc616f26c7664c2bd77ac8c8997..ecb2bf46f787c8d4aa58b6969a928ee4e7757d2f 100644 |
--- a/src/profiler/tick-sample.cc |
+++ b/src/profiler/tick-sample.cc |
@@ -214,8 +214,11 @@ bool TickSample::GetStackSample(Isolate* v8_isolate, RegisterState* regs, |
// we have already entrered JavaScript again and the external callback |
// is not the top function. |
if (scope && scope->scope_address() < handler) { |
+ i::Address* external_callback_entry_ptr = |
+ scope->callback_entrypoint_address(); |
sample_info->external_callback_entry = |
- *scope->callback_entrypoint_address(); |
+ external_callback_entry_ptr == nullptr ? nullptr |
+ : *external_callback_entry_ptr; |
} |
i::SafeStackFrameIterator it(isolate, reinterpret_cast<i::Address>(regs->fp), |