sd/source/ui/slideshow/slideshowimpl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 676f4e67493f4fec0004a925da675c0912b0637b Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Feb 29 08:34:33 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Thu Feb 29 13:29:09 2024 +0100 cid#1592640 Dereference after null check also possibly could be if (mpDocSh && !maPresSettings.mbInteractive) Change-Id: If68df161f4f7e72d6598469e398c3a8b44e1eba9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164139 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index e195fe29bf38..d06f867d994c 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -1127,7 +1127,7 @@ bool SlideshowImpl::startShow( PresentationSettingsEx const * pPresSettings ) mpPaneHider.reset(new PaneHider(*mpViewShell,this)); // these Slots are forbidden in other views for this document - if( mpDocSh && !pPresSettings->mbInteractive) // IASS + if( mpDocSh && pPresSettings && !pPresSettings->mbInteractive) // IASS { mpDocSh->SetSlotFilter( true, pAllowed ); mpDocSh->ApplySlotFilter();