summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-10 19:18:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-12 12:29:47 +0100
commit146fd118bd258289a34c771a2d2506ab275837d6 (patch)
tree18c4124ccf393ed88696edd734e9c229e2dc4562
parentb606d484a696faef7c7caa1bcc6afab8f514c7a0 (diff)
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@redhat.com>
-rw-r--r--sw/source/core/undo/untblk.cxx2
1 files changed, 1 insertions, 1 deletions
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 )