Index: net/tools/quic/chlo_extractor.cc |
diff --git a/net/tools/quic/chlo_extractor.cc b/net/tools/quic/chlo_extractor.cc |
index 16972345f595b55458b9ba07e2b764bc7b5c452c..24c9ab0e589c1c0ce73e588f17d7ab06da6d4521 100644 |
--- a/net/tools/quic/chlo_extractor.cc |
+++ b/net/tools/quic/chlo_extractor.cc |
@@ -148,7 +148,9 @@ void ChloFramerVisitor::OnError(CryptoFramer* framer) {} |
void ChloFramerVisitor::OnHandshakeMessage( |
const CryptoHandshakeMessage& message) { |
- delegate_->OnChlo(framer_->version(), connection_id_, message); |
+ if (delegate_ != nullptr) { |
+ delegate_->OnChlo(framer_->version(), connection_id_, message); |
+ } |
found_chlo_ = true; |
} |