coverity#735760 Unchecked dynamic_cast

Change-Id: I0ef7b6a35fe5f23a2572e6a6746fe39567d33079
This commit is contained in:
Caolán McNamara
2014-03-19 12:40:47 +00:00
parent eecb2b8db8
commit c2a27dda25

View File

@@ -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)