diff --git a/src/node.cc b/src/node.cc index 704bdc334b2f9c..bcc3971bbe2fb7 100644 --- a/src/node.cc +++ b/src/node.cc @@ -326,7 +326,8 @@ static struct { } void StopTracingAgent() { - tracing_agent_->Stop(); + if (tracing_agent_) + tracing_agent_->Stop(); } tracing::Agent* GetTracingAgent() const {