Kaydet (Commit) 8fbacacc authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#6764 Null-Dereference

Change-Id: Ic4c43d43b673f207123c99cbaca7efc019565c0d
Reviewed-on: https://gerrit.libreoffice.org/50820Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 6e32cf8b
...@@ -291,7 +291,7 @@ void XMLTextMarkImportContext::EndElement() ...@@ -291,7 +291,7 @@ void XMLTextMarkImportContext::EndElement()
m_rHelper.GetCursorAsRange()->getStart()); m_rHelper.GetCursorAsRange()->getStart());
// check if beginning and end are in same XText // 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 // create range for insertion
Reference<XTextCursor> xInsertionCursor = Reference<XTextCursor> xInsertionCursor =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment