sw/source/core/undo/rolbck.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit e1ea52fab05ceaed96dad0529daccb4c7e158996
Author: Caolán McNamara <[email protected]>
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 <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Caolán McNamara <[email protected]>
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 )
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits