diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 21:04:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 21:28:29 +0100 |
commit | 483626d8372309d1562a74ce659288f0905b4198 (patch) | |
tree | ef9f96e982aad88101a98072beb2ac3aec3fa242 /writerfilter | |
parent | 8a0230e78ce2a752749b62f0761849a72b367551 (diff) |
coverity#1209548 Unchecked dynamic_cast
Change-Id: I0adb2380d6804fef43812be3b9a6f32706fd7a4a
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 0312a43377be..772043ed4483 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -289,6 +289,8 @@ void DomainMapper_Impl::RemoveDummyParaForTableInSection() SetIsDummyParaAddedForTableInSection(false); PropertyMapPtr pContext = GetTopContextOfType(CONTEXT_SECTION); SectionPropertyMap* pSectionContext = dynamic_cast< SectionPropertyMap* >( pContext.get() ); + if (!pSectionContext) + return; uno::Reference< text::XTextCursor > xCursor = GetTopTextAppend()->createTextCursorByRange(pSectionContext->GetStartingRange()); uno::Reference<container::XEnumerationAccess> xEnumerationAccess(xCursor, uno::UNO_QUERY); |