Fix rare crash in message list context menu.

This commit is contained in:
John Preston 2022-09-30 18:29:29 +04:00
parent 1350fa64f3
commit 0fbb2e77fe
1 changed files with 1 additions and 1 deletions

View File

@ -1001,7 +1001,7 @@ base::unique_qptr<Ui::PopupMenu> FillContextMenu(
}
}
if (!list->hasCopyRestriction(view->data())) {
if (!view || !list->hasCopyRestriction(view->data())) {
AddCopyLinkAction(result, link);
}
AddMessageActions(result, request, list);