diff --git a/logging/rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc b/logging/rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc index 9ebdcbc985..b1497d3713 100644 --- a/logging/rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc +++ b/logging/rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc @@ -244,6 +244,7 @@ std::string RtcEventLogEncoderLegacy::EncodeBatch( for (auto it = begin; it != end; ++it) { // TODO(terelius): Can we avoid the slight inefficiency of reallocating the // string? + RTC_CHECK(it->get() != nullptr); encoded_output += Encode(**it); } return encoded_output; diff --git a/logging/rtc_event_log/rtc_event_log_impl.cc b/logging/rtc_event_log/rtc_event_log_impl.cc index 735c9b34a6..f1582e820a 100644 --- a/logging/rtc_event_log/rtc_event_log_impl.cc +++ b/logging/rtc_event_log/rtc_event_log_impl.cc @@ -216,7 +216,7 @@ void RtcEventLogImpl::StopLogging() { } void RtcEventLogImpl::Log(std::unique_ptr event) { - RTC_DCHECK(event); + RTC_CHECK(event); // Binding to |this| is safe because |this| outlives the |task_queue_|. auto event_handler = [this](std::unique_ptr unencoded_event) {