diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-10 09:58:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-10 16:40:41 +0100 |
commit | d64f6caf22715fb421f4b89820c0842b7cae6905 (patch) | |
tree | 453ae0e13053cbef50f8d92c928f85ca5d5e8a5e /editeng | |
parent | 4dba9820cf44718121a38b3f89eb8caa244d7321 (diff) |
ofz#4163 Null-dereference READ
Change-Id: I3d1ae5f55343b1b8ec3b0d79a56c9368385a0af8
Reviewed-on: https://gerrit.libreoffice.org/44581
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editeng.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index bb09af238d99..3e3b691d207b 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -1492,6 +1492,8 @@ EditTextObject* EditEngine::CreateTextObject() EditTextObject* EditEngine::CreateTextObject( const ESelection& rESelection ) { EditSelection aSel( pImpEditEngine->CreateSel( rESelection ) ); + if (aSel.IsInvalid()) + return nullptr; return pImpEditEngine->CreateTextObject( aSel ); } |