summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-06-11 09:10:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-06-11 12:42:54 +0200
commite1ea52fab05ceaed96dad0529daccb4c7e158996 (patch)
treef82f18e32d4cd20f2181a4978e5cb71fcee83be3
parent9804cc4eff4c5899abdc5309eeb019eb6ec1bf46 (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>
-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 )