summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-11 08:54:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-12-11 11:41:19 +0100
commitfcdd461a54a7b5703067690da8b4676321b24125 (patch)
tree1788e91550f619889c936ed7cea83df7d5f7ea0e /sw
parent3fd156419654ba5e2f248357a2eed5eeaad04548 (diff)
cid#1470586 Dereference after null check
since... commit d79a578c200ff30134cf5ec7ad5c66f3e5d2d4c9 Date: Tue Dec 8 23:50:27 2020 +0100 flylay: Modify no more Change-Id: Ief190dfb135d1bcc25004278cc68bf014554d533 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107583 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/flylay.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/flylay.cxx b/sw/source/core/layout/flylay.cxx
index 4d25fe00d1fa..2a084e67ad71 100644
--- a/sw/source/core/layout/flylay.cxx
+++ b/sw/source/core/layout/flylay.cxx
@@ -765,7 +765,7 @@ void SwFlyLayFrame::SwClientNotify(const SwModify&, const SfxHint& rHint)
pTmpPage = static_cast<SwPageFrame*>(pTmpPage->GetNext());
--nPagesToFlip;
}
- if(!nPagesToFlip)
+ if(pTmpPage && !nPagesToFlip)
{
// #i50432# - adjust synopsis of <PlaceFly(..)>
pTmpPage->PlaceFly(this, nullptr);