Kaydet (Commit) 4d6f797e authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1130196 Unchecked dynamic_cast

Change-Id: I194ad965c5261e1968cc3cb24e1609d46aea1a21
üst dd4f1821
......@@ -954,7 +954,7 @@ void StyleSheetTable::ApplyStyleSheets( FontTablePtr rFontTable )
xStyle.set(xStyles->getByName(sConvertedStyleName), uno::UNO_QUERY_THROW);
StyleSheetPropertyMap* pPropertyMap = dynamic_cast<StyleSheetPropertyMap*>(pEntry->pProperties.get());
if (pPropertyMap->GetListId() == -1)
if (pPropertyMap && pPropertyMap->GetListId() == -1)
{
// No properties? Word default is 'none', Writer one is 'arabic', handle this.
uno::Reference<beans::XPropertySet> xPropertySet(xStyle, uno::UNO_QUERY_THROW);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment