editeng/source/editeng/editview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b9037cbc0c96c1a08d0691d8bc2edc0e64f394ea Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Mar 2 16:14:12 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Mar 2 20:50:53 2022 +0100 cid#1500415 Explicit null dereferenced Change-Id: Ifcb4eb0c453f5d39ac9d44a40df060b16b33c462 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130886 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index 17ecb94b9dd1..8f199b79ea89 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -1223,7 +1223,7 @@ bool EditView::ExecuteSpellPopup(const Point& rPosPixel, const Link<SpellCallbac OUString aDicName; if (sId.toInt32() >= MN_DICTSTART) { - assert(pPopupParent && "this case only occurs when xInsertMenu exists"); + assert(xInsertMenu && "this case only occurs when xInsertMenu exists"); // strip_mnemonic is necessary to retrieve the correct dictionary name aDicName = pPopupParent->strip_mnemonic(xInsertMenu->get_label(sId)); }