[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Tue Dec 12 09:44:52 UTC 2017
sw/source/filter/html/htmlnumreader.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit ea0e5ac64820976a2ae124e47156dd94407bf874
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Dec 12 09:41:26 2017 +0000
ofz: Null-deref
Change-Id: Iffca72883eacb9502b14751b02c0bc61110614b8
diff --git a/sw/source/filter/html/htmlnumreader.cxx b/sw/source/filter/html/htmlnumreader.cxx
index 377419d30ef2..79207a9ed43b 100644
--- a/sw/source/filter/html/htmlnumreader.cxx
+++ b/sw/source/filter/html/htmlnumreader.cxx
@@ -399,7 +399,8 @@ void SwHTMLParser::EndNumBulList( HtmlTokenId nToken )
// On the last append, the NumRule item and NodeNum object were copied.
// Now we need to delete them. ResetAttr deletes the NodeNum object as well
- m_pPam->GetNode().GetTextNode()->ResetAttr( RES_PARATR_NUMRULE );
+ if (SwTextNode *pTextNode = m_pPam->GetNode().GetTextNode())
+ pTextNode->ResetAttr(RES_PARATR_NUMRULE);
rInfo.Clear();
}
More information about the Libreoffice-commits
mailing list