summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-03-02 16:14:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-03-02 20:50:53 +0100
commitb9037cbc0c96c1a08d0691d8bc2edc0e64f394ea (patch)
treed919deab323793cfec93b00e668c25f24569ef6d /editeng
parentc4c1a6e6bfc42dddfa7a7ded826dca37c1d35dce (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editview.cxx2
1 files changed, 1 insertions, 1 deletions
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));
}