From 90fea23dd79854b4b72cec77b053606ddd6e12c2 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 12 Oct 2021 22:17:07 +0300 Subject: [PATCH] Check that content was parsed. --- td/telegram/MessagesManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index c3081b87f..67901fae9 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -5181,6 +5181,7 @@ void MessagesManager::Message::parse(ParserT &parser) { parse(max_reply_media_timestamp, parser); } + CHECK(content != nullptr); is_content_secret |= is_secret_message_content(ttl, content->get_type()); // repair is_content_secret for old messages if (hide_edit_date && content->get_type() == MessageContentType::LiveLocation) {