sw/source/core/unocore/unotext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 539d939cbd6a02ca043ef535424cda4a65abe5fd Author: Caolán McNamara <caol...@redhat.com> Date: Tue May 22 21:40:43 2018 +0100 ofz#8473 Null-dereference READ Change-Id: Id6578d180fec3738be127993f02aaf45af915688 Reviewed-on: https://gerrit.libreoffice.org/54682 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx index 5d9bde6d73a7..5ecc6fbf399b 100644 --- a/sw/source/core/unocore/unotext.cxx +++ b/sw/source/core/unocore/unotext.cxx @@ -559,7 +559,7 @@ SwXText::insertTextContent( pTmp = pTmp->StartOfSectionNode(); } // if the document starts with a section - while (pOwnStartNode->IsSectionNode()) + while (pOwnStartNode && pOwnStartNode->IsSectionNode()) { pOwnStartNode = pOwnStartNode->StartOfSectionNode(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits