summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoportenum.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-07 10:10:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-07 12:24:41 +0000
commitcee79013092ef593ff5ae8cce0d4174f7ac3512c (patch)
tree27215d59306b5f16bba04a1ec28a5a3c9c561fb4 /sw/source/core/unocore/unoportenum.cxx
parent624eb1cc6a42ed37a351c14bdee4e0007959c2d0 (diff)
coverity#1158059 Unchecked dynamic_cast
Change-Id: Ia7b3ed28c1120d542c1d1dbe4fd05b2663b688d1
Diffstat (limited to 'sw/source/core/unocore/unoportenum.cxx')
-rw-r--r--sw/source/core/unocore/unoportenum.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx
index 76059b4949a0..9677f7d8b786 100644
--- a/sw/source/core/unocore/unoportenum.cxx
+++ b/sw/source/core/unocore/unoportenum.cxx
@@ -816,7 +816,7 @@ lcl_ExportHints(
break;
const SwTxtAnnotationFld* pTxtAnnotationFld = dynamic_cast<const SwTxtAnnotationFld*>( pAttr );
- ::sw::mark::IMark* pAnnotationMark = pTxtAnnotationFld->GetAnnotationMark();
+ ::sw::mark::IMark* pAnnotationMark = pTxtAnnotationFld ? pTxtAnnotationFld->GetAnnotationMark() : NULL;
if ( pAnnotationMark != NULL )
{
SwXTextPortion* pPortion = new SwXTextPortion( pUnoCrsr, xParent, PORTION_ANNOTATION_END );