[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Thu Mar 1 20:33:14 UTC 2018


 sw/source/filter/ww8/ww8par2.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 6e12191749542d81f9b29f34148cbc8c511748d2
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Mar 1 20:32:02 2018 +0000

    ofz#6639 Null-dereference
    
    Change-Id: I55c3de55678066895c38c247fa440143e7733ba2

diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 04856eb181db..ce0aa411f6f6 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -1008,6 +1008,9 @@ void SwWW8ImplReader::NextAnlLine(const sal_uInt8* pSprm13)
         m_nSwNumLevel = 0xff;                 // no number
 
     SwTextNode* pNd = m_pPaM->GetNode().GetTextNode();
+    if (!pNd)
+        return;
+
     if (m_nSwNumLevel < MAXLEVEL)
         pNd->SetAttrListLevel( m_nSwNumLevel );
     else


More information about the Libreoffice-commits mailing list