diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-12-04 16:10:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-12-04 20:48:52 +0000 |
commit | 3d22f241708fc0bb97faf7cb45ee0b338c93fd52 (patch) | |
tree | a1df38a77176c5292e44db13ada69df2a9aeb83a /sd | |
parent | 836e001c8632702c2eda7b5bac799ef5f1a24cdf (diff) |
cid#1517253 Dereference null return value
Change-Id: I222dd5c220de7f0775aa2966bc36c73952605ddc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143633
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/viewshe3.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx index 7ebf88b446dd..a7d466f6d94b 100644 --- a/sd/source/ui/view/viewshe3.cxx +++ b/sd/source/ui/view/viewshe3.cxx @@ -231,6 +231,7 @@ SdPage* ViewShell::CreateOrDuplicatePage ( const SfxUInt32Item* pLayout = rRequest.GetArg<SfxUInt32Item>(ID_VAL_WHATLAYOUT); const SfxBoolItem* pIsPageBack = rRequest.GetArg<SfxBoolItem>(ID_VAL_ISPAGEBACK); const SfxBoolItem* pIsPageObj = rRequest.GetArg<SfxBoolItem>(ID_VAL_ISPAGEOBJ); + assert(pPageName && pLayout && pIsPageBack && pIsPageObj && "must be present"); if (CHECK_RANGE (AUTOLAYOUT_START, static_cast<AutoLayout>(pLayout->GetValue ()), AUTOLAYOUT_END)) { |