sw/source/filter/html/htmlnumreader.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit ea0e5ac64820976a2ae124e47156dd94407bf874 Author: Caolán McNamara <[email protected]> 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(); }
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
