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