summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-06-01 20:49:22 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-06-02 16:06:53 +0200
commit27800d75517957f3c372e281efd4b4c04f8b6751 (patch)
tree6b8a2d3e9866f4d09d9f0c3fa2967a28d7f03b61 /sw
parentc53da679fd420b47eed59827862df8d75eddd361 (diff)
Related: tdf#122081 null-deref of SwFootnoteFrame
load doc, ctrl+end, ctrl+home, ctrl+6 enter 29, return, wheel scroll down 7 or 8 times and this null-deref Change-Id: I1963a89e3223de89f3414e435accd8d8ebfe80a9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152511 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> (cherry picked from commit 389a8d52d9961f89c0b2847b30ee1ca59a8fdc80) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152448 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/txtftn.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/txtftn.cxx b/sw/source/core/text/txtftn.cxx
index c86c1bc4ab0d..035158e2bd25 100644
--- a/sw/source/core/text/txtftn.cxx
+++ b/sw/source/core/text/txtftn.cxx
@@ -664,7 +664,7 @@ void SwTextFrame::ConnectFootnote( SwTextFootnote *pFootnote, const SwTwips nDea
mbInFootnoteConnect = false;
return;
}
- else if( pSrcFrame )
+ else if (pSrcFrame && pFootnoteFrame)
{
SwFootnoteBossFrame *pFootnoteBoss = pFootnoteFrame->FindFootnoteBossFrame();
if( !pFootnoteBoss->IsInSct() ||