diff options
-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 = |