Index: net/quic/quic_connection.cc |
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc |
index a7aca6f1cef913eb953a87c8dd1af21a665d0541..d5cdded5c478f3c6942b948c05c2832cdc706dec 100644 |
--- a/net/quic/quic_connection.cc |
+++ b/net/quic/quic_connection.cc |
@@ -2077,7 +2077,7 @@ void QuicConnection::CloseConnection(QuicErrorCode error, bool from_peer) { |
// TODO(rtenneti): crbug.com/546668. A temporary fix. Added a check for null |
// |visitor_| to fix crash bug. Delete |visitor_| check and histogram after |
// fix is merged. |
- if (visitor_) { |
+ if (visitor_ != nullptr) { |
visitor_->OnConnectionClosed(error, from_peer); |
} else { |
UMA_HISTOGRAM_BOOLEAN("Net.QuicCloseConnection.NullVisitor", true); |