[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Wed May 23 07:59:37 UTC 2018
sw/source/core/unocore/unotext.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 539d939cbd6a02ca043ef535424cda4a65abe5fd
Author: Caolán McNamara <caolanm at 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 <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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();
}
More information about the Libreoffice-commits
mailing list