xmloff/source/text/txtparai.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 05652e51420630310606ac29f86e76f3bb148af5 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Nov 5 12:28:23 2018 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Nov 5 15:20:33 2018 +0100 ofz#11261 null-deref Change-Id: I2a6b17feb500be9b76f89ed3ae177f44f4c164ec Reviewed-on: https://gerrit.libreoffice.org/62896 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx index 4b1ed3061456..562a7def9a69 100644 --- a/xmloff/source/text/txtparai.cxx +++ b/xmloff/source/text/txtparai.cxx @@ -639,6 +639,11 @@ void XMLImpRubyContext_Impl::EndElement() GetImport().GetTextImport()); const Reference < XTextCursor > xAttrCursor( xTextImport->GetText()->createTextCursorByRange( m_xStart )); + if (!xAttrCursor.is()) + { + SAL_WARN("xmloff.text", "cannot insert ruby"); + return; + } xAttrCursor->gotoRange(xTextImport->GetCursorAsRange()->getStart(), true); xTextImport->SetRuby( GetImport(), xAttrCursor, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits