[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jan 12 11:30:28 UTC 2021
sw/source/core/undo/untblk.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 146fd118bd258289a34c771a2d2506ab275837d6
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Jan 10 19:18:18 2021 +0000
Commit: Caolán McNamara <caolanm at 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 <caolanm at 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 )
More information about the Libreoffice-commits
mailing list