sd/source/ui/view/viewshe3.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 69ea57c2b5a8a485cfd5c3d97c6020e5beccf250 Author: Caolán McNamara <[email protected]> AuthorDate: Thu Jan 22 13:06:47 2026 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Feb 6 17:47:04 2026 +0100 cid#1680358 Dereference before null check Change-Id: Ibf1d4937dca8783f27898af524ed154399b5069a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197816 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> (cherry picked from commit 423a38df2702b2f663241a847ec2270713fdee2e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198408 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx index c60a894b25e0..8fba01d756bc 100644 --- a/sd/source/ui/view/viewshe3.cxx +++ b/sd/source/ui/view/viewshe3.cxx @@ -164,7 +164,7 @@ SdPage* ViewShell::CreateOrDuplicatePage ( SdPage* pPage, const sal_Int32 nInsertPosition) { - if (pPage->IsCanvasPage()) + if (pPage && pPage->IsCanvasPage()) return nullptr; sal_uInt16 nSId = rRequest.GetSlot(); SdDrawDocument* pDocument = GetDoc();
