sd/source/ui/view/viewshe3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 423a38df2702b2f663241a847ec2270713fdee2e
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Jan 22 13:06:47 2026 +0000
Commit:     Miklos Vajna <[email protected]>
CommitDate: Fri Jan 23 10:39:02 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]>

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();

Reply via email to