From e1ea52fab05ceaed96dad0529daccb4c7e158996 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 11 Jun 2018 09:10:50 +0100 Subject: coverity#1436014 silence Dereference null return value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5ba1f864b5fcf69e3437792f99d24367f5f5a44d Reviewed-on: https://gerrit.libreoffice.org/55603 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/core/undo/rolbck.cxx | 1 + 1 file changed, 1 insertion(+) 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( pTextNd->GetTextAttrForCharAt( m_nStart )); + assert(pFootnote); SwFormatFootnote &rFootnote = const_cast(pFootnote->GetFootnote()); rFootnote.SetNumStr( m_FootnoteNumber ); if ( rFootnote.IsEndNote() != m_bEndNote ) -- cgit