We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5f3cd8 commit 16a143cCopy full SHA for 16a143c
src/inspector_io.cc
@@ -353,6 +353,9 @@ std::optional<std::string> InspectorIoDelegate::GetTargetSessionId(
353
std::string_view view(message.data(), message.size());
354
std::unique_ptr<protocol::DictionaryValue> value =
355
protocol::DictionaryValue::cast(JsonUtil::parseJSON(view));
356
+ if (!value) {
357
+ return std::nullopt;
358
+ }
359
protocol::String target_session_id;
360
protocol::Value* target_session_id_value = value->get("sessionId");
361
if (target_session_id_value) {
0 commit comments