diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc index 391d3bc037927e..c8e62f6f0a22c0 100644 --- a/src/inspector_agent.cc +++ b/src/inspector_agent.cc @@ -693,6 +693,8 @@ bool Agent::IsWaitingForConnect() { } bool Agent::HasConnectedSessions() { + if (client_ == nullptr) + return false; return client_->hasConnectedSessions(); }