sd/source/ui/view/viewshe3.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 3d22f241708fc0bb97faf7cb45ee0b338c93fd52 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Dec 4 16:10:11 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Dec 4 20:48:52 2022 +0000
cid#1517253 Dereference null return value Change-Id: I222dd5c220de7f0775aa2966bc36c73952605ddc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143633 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> 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)) {