summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-19 12:40:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-19 15:37:57 +0000
commitc2a27dda25943a148f30cad44b71052a606879ed (patch)
tree4097b8548c78eff00e0dfe381160871a98b33e61 /lotuswordpro
parenteecb2b8db8125294d85a37cbb184743b659eeaf3 (diff)
coverity#735760 Unchecked dynamic_cast
Change-Id: I0ef7b6a35fe5f23a2572e6a6746fe39567d33079
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpstory.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwpstory.cxx b/lotuswordpro/source/filter/lwpstory.cxx
index 8bb7b86f4fec..d8983b9cd9af 100644
--- a/lotuswordpro/source/filter/lwpstory.cxx
+++ b/lotuswordpro/source/filter/lwpstory.cxx
@@ -491,6 +491,8 @@ OUString LwpStory::GetContentText(sal_Bool bAllText)
OUString LwpStory::RegisterFirstFribStyle()
{
LwpPara* pPara = dynamic_cast<LwpPara*>(GetFirstPara()->obj());
+ if (!pPara)
+ return OUString("");
pPara->SetFoundry(m_pFoundry);
LwpFribPtr* pFribs = pPara->GetFribs();
if (pFribs)