diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-12-05 16:18:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-12-05 19:35:44 +0000 |
commit | db7f8b960ef44726b8a468eeaa9edd2eba4e6544 (patch) | |
tree | 4adb7f54fcefab18214ed575c286850b991be11a /sd | |
parent | fd14dd0e4c6a7ea0866a686f653db90301d664b6 (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/ViewShellImplementation.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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) |