diff --git a/p2p/base/fakeportallocator.h b/p2p/base/fakeportallocator.h index b5db8238e1..514340bd5b 100644 --- a/p2p/base/fakeportallocator.h +++ b/p2p/base/fakeportallocator.h @@ -129,6 +129,7 @@ class FakePortAllocatorSession : public PortAllocatorSession { port_.reset(TestUDPPort::Create(network_thread_, factory_, &network, 0, 0, username(), password(), std::string(), false)); + RTC_DCHECK(port_); port_->SignalDestroyed.connect( this, &FakePortAllocatorSession::OnPortDestroyed); AddPort(port_.get());