mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-22 08:16:56 +00:00
Fix possible crash in click handling.
This commit is contained in:
parent
ebd8380019
commit
8a974273b9
@ -385,7 +385,7 @@ const SponsoredMessages::Entry *SponsoredMessages::find(
|
||||
}
|
||||
auto &list = it->second;
|
||||
const auto entryIt = ranges::find_if(list.entries, [&](const Entry &e) {
|
||||
return e.item->fullId() == fullId;
|
||||
return e.item && e.item->fullId() == fullId;
|
||||
});
|
||||
if (entryIt == end(list.entries)) {
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user