sw/source/core/undo/untblk.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 146fd118bd258289a34c771a2d2506ab275837d6 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Jan 10 19:18:18 2021 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Jan 12 12:29:47 2021 +0100 cid#1471720 Dereference after null check Change-Id: I62a8410c2f21684d063001825748f8fdbd7727b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109059 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/core/undo/untblk.cxx b/sw/source/core/undo/untblk.cxx index a926fa2712c2..f907be8013e1 100644 --- a/sw/source/core/undo/untblk.cxx +++ b/sw/source/core/undo/untblk.cxx @@ -420,7 +420,7 @@ void SwUndoInserts::RedoImpl(::sw::UndoRedoContext & rContext) } } - if (rDoc.GetTextFormatColls()->IsAlive(m_pTextFormatColl)) + if (m_pTextFormatColl && rDoc.GetTextFormatColls()->IsAlive(m_pTextFormatColl)) { SwTextNode* pTextNd = rPam.GetMark()->nNode.GetNode().GetTextNode(); if( pTextNd ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits