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)