From 46dfde881ab2a45d945afe7bb84aab10b2d25bf7 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 11 Jun 2021 19:19:50 +0400 Subject: [PATCH] Fix crash in screencast error handling. --- Telegram/SourceFiles/calls/group/calls_group_call.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/calls/group/calls_group_call.cpp b/Telegram/SourceFiles/calls/group/calls_group_call.cpp index c67eadc99..bad608855 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_call.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_call.cpp @@ -1122,6 +1122,10 @@ void GroupCall::markTrackShown(const VideoEndpoint &endpoint, bool shown) { } void GroupCall::markTrackPaused(const VideoEndpoint &endpoint, bool paused) { + if (!endpoint) { + return; + } + const auto i = _activeVideoTracks.find(endpoint); Assert(i != end(_activeVideoTracks));