From 73290883a79f3972d15d5e21d4bfc7fb1afc3df0 Mon Sep 17 00:00:00 2001 From: helloshuangzi Date: Tue, 8 May 2018 16:34:55 -0700 Subject: [PATCH] inspector: fix inspector::Agent::HasConnectedSessions --- src/inspector_agent.cc | 2 ++ 1 file changed, 2 insertions(+) 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(); }