sd/source/ui/view/ViewShellImplementation.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit db7f8b960ef44726b8a468eeaa9edd2eba4e6544 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Dec 5 16:18:03 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Dec 5 19:35:44 2022 +0000 cid#1517256 Dereference null return value Change-Id: I20bcd522526d5da3dcb9f24f7ae07ad6f9465459 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143677 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sd/source/ui/view/ViewShellImplementation.cxx b/sd/source/ui/view/ViewShellImplementation.cxx index 5725feb2cc4f..2f81d5be9b3e 100644 --- a/sd/source/ui/view/ViewShellImplementation.cxx +++ b/sd/source/ui/view/ViewShellImplementation.cxx @@ -122,6 +122,7 @@ void ViewShell::Implementation::ProcessModifyPageSlot ( const SfxUInt32Item* pNewAutoLayout = rRequest.GetArg<SfxUInt32Item>(ID_VAL_WHATLAYOUT); const SfxBoolItem* pBVisible = rRequest.GetArg<SfxBoolItem>(ID_VAL_ISPAGEBACK); const SfxBoolItem* pBObjsVisible = rRequest.GetArg<SfxBoolItem>(ID_VAL_ISPAGEOBJ); + assert(pNewName && pNewAutoLayout && pBVisible && pBObjsVisible && "must be present"); AutoLayout aLayout (static_cast<AutoLayout>(pNewAutoLayout->GetValue ())); if (aLayout >= AUTOLAYOUT_START && aLayout < AUTOLAYOUT_END)