diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-19 12:37:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-19 12:54:24 +0000 |
commit | 9e83e31019cdc68e5324a10ef76417b46720cfe9 (patch) | |
tree | f4497fcd5e57f0339df9b05c57ea3dabb213f0a3 /lotuswordpro | |
parent | 26fddc3196c7ab932ada544b84b74da06fa2596d (diff) |
coverity#1343625 Unchecked dynamic_cast
Change-Id: Ib534e4e8ecf50a9159c5e98e2c899bf13f44c654
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpfribsection.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpfribsection.cxx b/lotuswordpro/source/filter/lwpfribsection.cxx index 591ed4a12a8b..1a38e071b49e 100644 --- a/lotuswordpro/source/filter/lwpfribsection.cxx +++ b/lotuswordpro/source/filter/lwpfribsection.cxx @@ -338,7 +338,7 @@ bool LwpMasterPage::IsNeedSection() //get story LwpStory* pStory = dynamic_cast<LwpStory*>(m_pPara->GetStoryID().obj().get()); //if pagelayout is modified, register the pagelayout - if(pStory->IsPMModified()) + if (pStory && pStory->IsPMModified()) { bNewSection = pStory->IsNeedSection(); } |