cid#1458432 Null pointer dereferences

Change-Id: I09afa3504312ba25c2d4b2292e818bc7648b07c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88812
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2020-02-16 15:36:32 +00:00
parent 89071b4024
commit ee51edf70e

View File

@@ -1071,11 +1071,11 @@ void StyleSheetTable::ApplyStyleSheets( const FontTablePtr& rFontTable )
{
if (aSheetProps->sStyleIdentifierD == sBaseId)
{
StyleSheetPropertyMap* aStyleSheetProps
= dynamic_cast<StyleSheetPropertyMap*>(aSheetProps->pProperties.get());
pStyleSheetProperties->SetListLevel(aStyleSheetProps->GetListLevel());
pStyleSheetProperties->SetOutlineLevel(aStyleSheetProps->GetOutlineLevel());
pStyleSheetProperties->SetNumId(aStyleSheetProps->GetNumId());
StyleSheetPropertyMap& rStyleSheetProps
= dynamic_cast<StyleSheetPropertyMap&>(*aSheetProps->pProperties);
pStyleSheetProperties->SetListLevel(rStyleSheetProps.GetListLevel());
pStyleSheetProperties->SetOutlineLevel(rStyleSheetProps.GetOutlineLevel());
pStyleSheetProperties->SetNumId(rStyleSheetProps.GetNumId());
break;
}
}