diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index b7c5cba312..56eeb49d52 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -2526,7 +2526,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) { ? link->copyToClipboardContextItemText() : QString(); - if (item->isSponsored()) { + if (item && item->isSponsored()) { FillSponsoredMessagesMenu(controller, item->fullId(), _menu); } if (isUponSelected > 0) {