diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-01 09:09:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-01 17:28:36 +0200 |
commit | 78aea95703c0111f333b28c690e6b46aae77bf45 (patch) | |
tree | 554043f2eed487e46274a0a2bb3e7cff0f728ef3 | |
parent | 2a20061420b87ee37fa85b20fbc75f0a82f409f2 (diff) |
cid#1466573 Dereference after null check
Change-Id: Ie8f5c015d32b67ad9148c1d0bb8d73425a5b563a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101827
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | i18npool/source/textconversion/textconversion_zh.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/textconversion/textconversion_zh.cxx b/i18npool/source/textconversion/textconversion_zh.cxx index 3f7ff96d8a15..d45baa553e53 100644 --- a/i18npool/source/textconversion/textconversion_zh.cxx +++ b/i18npool/source/textconversion/textconversion_zh.cxx @@ -212,7 +212,7 @@ TextConversion_zh::getWordConversion(const OUString& aText, sal_Int32 nStartPos, } } - if (!found && index[len+1] - index[len] > 0) { + if (wordData && !found && index[len+1] - index[len] > 0) { sal_Int32 bottom = static_cast<sal_Int32>(index[len]); sal_Int32 top = static_cast<sal_Int32>(index[len+1]) - 1; |