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

New commits:
commit 8b9d9a2b447e9e0b912f5db5eadac776b9689bc6
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Jan 22 13:06:47 2026 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Jan 23 10:04:23 2026 +0100

    cid#1680358 Dereference before null check
    
    Change-Id: Ibf1d4937dca8783f27898af524ed154399b5069a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197815
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx
index 6c7cd1f06d0d..da990a1ea057 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