DCHECK that we don't insert nullptr into event log.

BUG=None

Review-Url: https://codereview.webrtc.org/2874753003
Cr-Commit-Position: refs/heads/master@{#18100}
This commit is contained in:
terelius 2017-05-11 06:05:27 -07:00 committed by Commit bot
parent 2077f2f9fc
commit 8a329652de

View File

@ -572,6 +572,8 @@ void RtcEventLogImpl::LogProbeResult(int id,
}
void RtcEventLogImpl::StoreEvent(std::unique_ptr<rtclog::Event>* event) {
RTC_DCHECK(event != nullptr);
RTC_DCHECK(event->get() != nullptr);
if (!event_queue_.Insert(event)) {
LOG(LS_ERROR) << "WebRTC event log queue full. Dropping event.";
}