summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-06-11 09:10:50 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-06-14 16:19:10 +0200
commitde26bde6eb50d555e9c1a3e70d1a91065ba05d9d (patch)
tree817fbc362aee4c7d8655e7f008098cf256ad559e /sw
parent4b7dd9451c0dccbbecb237d9a98ce583b744ea00 (diff)
coverity#1436014 silence Dereference null return value
Change-Id: I5ba1f864b5fcf69e3437792f99d24367f5f5a44d Reviewed-on: https://gerrit.libreoffice.org/55603 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/undo/rolbck.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/undo/rolbck.cxx b/sw/source/core/undo/rolbck.cxx
index 6b9c025c4d83..4d1b3889c21e 100644
--- a/sw/source/core/undo/rolbck.cxx
+++ b/sw/source/core/undo/rolbck.cxx
@@ -490,6 +490,7 @@ void SwHistorySetFootnote::SetInDoc( SwDoc* pDoc, bool )
SwTextFootnote * const pFootnote =
static_cast<SwTextFootnote*>(
pTextNd->GetTextAttrForCharAt( m_nStart ));
+ assert(pFootnote);
SwFormatFootnote &rFootnote = const_cast<SwFormatFootnote&>(pFootnote->GetFootnote());
rFootnote.SetNumStr( m_FootnoteNumber );
if ( rFootnote.IsEndNote() != m_bEndNote )