summaryrefslogtreecommitdiff
path: root/sd/source/ui/app
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-06 21:08:29 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-07 11:15:52 +0200
commit39ca26c6705d1544b7007bf930c9e862c0aa4b25 (patch)
treeb72ea4ac477ea3c7f9475640423d72e6b3cccf8b /sd/source/ui/app
parentdb68bf7859f79676cd7addb2565e6ce0fbf4e570 (diff)
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I3f13b457025280486d6cb4d2935c1ef5a52b0637 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167250 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sd/source/ui/app')
-rw-r--r--sd/source/ui/app/sdmod2.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx
index d1d2d2998778..55b7d43ba3dc 100644
--- a/sd/source/ui/app/sdmod2.cxx
+++ b/sd/source/ui/app/sdmod2.cxx
@@ -498,6 +498,7 @@ std::optional<SfxItemSet> SdModule::CreateItemSet( sal_uInt16 nSlot )
sal_Int32 nY;
if( pDocSh )
{
+ assert(pDoc);
SdrPage* pPage = pDoc->GetSdPage(0, PageKind::Standard);
Size aSize(pPage->GetSize());
nW = aSize.Width();