diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-06 11:46:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-06 22:38:03 +0100 |
commit | 8fbacaccf41c914bb3e8328980b9981018b187fe (patch) | |
tree | 5c7ed17c7c97624a450453b408756cda79d3cb88 /xmloff/source/text | |
parent | 6e32cf8b654abc103f3f742b7b7ae0fff0e64f69 (diff) |
ofz#6764 Null-Dereference
Change-Id: Ic4c43d43b673f207123c99cbaca7efc019565c0d
Reviewed-on: https://gerrit.libreoffice.org/50820
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 'xmloff/source/text')
-rw-r--r-- | xmloff/source/text/XMLTextMarkImportContext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/text/XMLTextMarkImportContext.cxx b/xmloff/source/text/XMLTextMarkImportContext.cxx index 28f3f71fdd24..3854f6c7e2da 100644 --- a/xmloff/source/text/XMLTextMarkImportContext.cxx +++ b/xmloff/source/text/XMLTextMarkImportContext.cxx @@ -291,7 +291,7 @@ void XMLTextMarkImportContext::EndElement() m_rHelper.GetCursorAsRange()->getStart()); // check if beginning and end are in same XText - if (xStartRange->getText() == xEndRange->getText()) + if (xStartRange.is() && xEndRange.is() && xStartRange->getText() == xEndRange->getText()) { // create range for insertion Reference<XTextCursor> xInsertionCursor = |