diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 10:10:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 12:24:41 +0000 |
commit | cee79013092ef593ff5ae8cce0d4174f7ac3512c (patch) | |
tree | 27215d59306b5f16bba04a1ec28a5a3c9c561fb4 /sw | |
parent | coverity#1132667 Unchecked dynamic_cast (diff) | |
download | core-cee79013092ef593ff5ae8cce0d4174f7ac3512c.tar.gz core-cee79013092ef593ff5ae8cce0d4174f7ac3512c.zip |
coverity#1158059 Unchecked dynamic_cast
Change-Id: Ia7b3ed28c1120d542c1d1dbe4fd05b2663b688d1
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unoportenum.cxx | 2 |
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 ); |