From c2a27dda25943a148f30cad44b71052a606879ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 19 Mar 2014 12:40:47 +0000 Subject: [PATCH] coverity#735760 Unchecked dynamic_cast Change-Id: I0ef7b6a35fe5f23a2572e6a6746fe39567d33079 --- lotuswordpro/source/filter/lwpstory.cxx | 2 ++ 1 file changed, 2 insertions(+) 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(GetFirstPara()->obj()); + if (!pPara) + return OUString(""); pPara->SetFoundry(m_pFoundry); LwpFribPtr* pFribs = pPara->GetFribs(); if (pFribs)