From 274d265e42ab89be29af21ef5cc1cbf20b3d35a2 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 19 Dec 2015 12:45:06 +0000 Subject: coverity#1343629 Unchecked dynamic_cast Change-Id: I93b7298d785e57a4ef854cea3e9cd5c2c0f35849 --- lotuswordpro/source/filter/lwpfribsection.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lotuswordpro/source') diff --git a/lotuswordpro/source/filter/lwpfribsection.cxx b/lotuswordpro/source/filter/lwpfribsection.cxx index 33ceeb95c797..a6ad875a39ef 100644 --- a/lotuswordpro/source/filter/lwpfribsection.cxx +++ b/lotuswordpro/source/filter/lwpfribsection.cxx @@ -190,7 +190,7 @@ void LwpFribSection::SetDefaultAlphaIndex(XFIndex * pXFIndex) LwpIndexSection* pIndexSection = dynamic_cast(m_Section.obj().get()); XFIndexTemplate * pTemplateSep = new XFIndexTemplate(); - if (pIndexSection->IsFormatSeparator()) + if (pIndexSection && pIndexSection->IsFormatSeparator()) { pXFIndex->SetSeparator(true); pTemplateSep->AddEntry(enumXFIndexTemplateText,""); @@ -216,7 +216,7 @@ void LwpFribSection::SetDefaultAlphaIndex(XFIndex * pXFIndex) pTemplate3->AddEntry(enumXFIndexTemplateTab,""); pTemplate3->AddEntry(enumXFIndexTemplatePage,""); - if (pIndexSection->IsFormatRunin()) + if (pIndexSection && pIndexSection->IsFormatRunin()) { //pXFIndex->AddTemplate(OUString::number(2),"Primary",pTemplate2); //pXFIndex->AddTemplate(OUString::number(3),"Primary",pTemplate3); -- cgit