diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-29 20:56:15 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-03-29 21:02:05 +0100 |
commit | 9361d5a2dd9615e053b308e358afb8b36b843e71 (patch) | |
tree | 361df1047885aad84158058982f368f51e1339f8 /writerfilter | |
parent | 68184cf69655036b9ab0bfcda86ff91dc1277d1b (diff) |
coverity#736003 Unchecked dynamic_cast
Change-Id: Ie7451b1c96437df444198152230190d07689c1f1
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index c86a6acab248..0df4a5412b8d 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -4362,7 +4362,9 @@ uno::Reference<container::XIndexAccess> DomainMapper_Impl::GetCurrentNumberingRu const StyleSheetEntryPtr pEntry = GetStyleSheetTable()->FindStyleSheetByISTD(aStyle); if (!pEntry) return xRet; - const StyleSheetPropertyMap* pStyleSheetProperties = dynamic_cast<const StyleSheetPropertyMap*>(pEntry ? pEntry->pProperties.get() : 0); + const StyleSheetPropertyMap* pStyleSheetProperties = dynamic_cast<const StyleSheetPropertyMap*>(pEntry->pProperties.get()); + if (!pStyleSheetProperties) + return xRet; sal_Int32 nListId = pStyleSheetProperties->GetListId(); if (nListId < 0) return xRet; |