diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-13 15:03:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-13 21:27:24 +0100 |
commit | 79742eab111e5f3722075abc3cdb1333faacd076 (patch) | |
tree | e536820a2bb02ecc47fbc687b2491aa7ba10c281 /editeng | |
parent | 1243f89c6b90f95527104d38ed4e015a69abd1bd (diff) |
ofz#4202 Null-dereference READ
Change-Id: Ib9beadaea1bc6521faf7d8080d301e4b5451fb1d
Reviewed-on: https://gerrit.libreoffice.org/44685
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, 0 insertions, 2 deletions
diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index 3e3b691d207b..bb09af238d99 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -1492,8 +1492,6 @@ EditTextObject* EditEngine::CreateTextObject() EditTextObject* EditEngine::CreateTextObject( const ESelection& rESelection ) { EditSelection aSel( pImpEditEngine->CreateSel( rESelection ) ); - if (aSel.IsInvalid()) - return nullptr; return pImpEditEngine->CreateTextObject( aSel ); } |