[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Mon Jun 11 10:43:14 UTC 2018
sw/source/core/undo/rolbck.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit e1ea52fab05ceaed96dad0529daccb4c7e158996
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Jun 11 09:10:50 2018 +0100
coverity#1436014 silence Dereference null return value
Change-Id: I5ba1f864b5fcf69e3437792f99d24367f5f5a44d
Reviewed-on: https://gerrit.libreoffice.org/55603
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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 )
More information about the Libreoffice-commits
mailing list