vcl/source/edit/texteng.cxx | 2 ++ 1 file changed, 2 insertions(+) New commits: commit 8e7cb64a260831f3aa6561c05f1cf0ea5be56789 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Sep 6 12:56:55 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Sep 6 16:28:57 2022 +0200
cid#1509195 silence Explicit null dereferenced Change-Id: I9a7cbdb0e2cc4a5624d78dbb88c7f5dacc68f309 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139516 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 6227c6e1da27..75d6085859e3 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -2189,6 +2189,8 @@ bool TextEngine::CreateLines( sal_uInt32 nPara ) bool bFixedEnd = false; if ( nTmpWidth > nXWidth ) { + assert(pPortion); + nPortionEnd = nTmpPos; nTmpPos -= pPortion->GetLen(); nPortionStart = nTmpPos;