diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-06-11 09:10:50 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-06-12 18:55:54 +0200 |
commit | 5741955a2027fc20e1f37a1a8dd93f52818a4610 (patch) | |
tree | 1e288bf1d354e43930815facdbf94ef299560f5e | |
parent | coverity#1436013 Unintended sign extension (diff) | |
download | core-private/thb/sw_redlinehide-6-1.tar.gz core-private/thb/sw_redlinehide-6-1.zip |
coverity#1436014 silence Dereference null return value
private/thb/sw_redlinehide-6-1
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.cxx | 1 |
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 ) |