diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-02-15 09:26:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-02-15 12:06:17 +0000 |
commit | bc142fa6f4ac5694a7b3dfa3bcb2713e68793664 (patch) | |
tree | 53ebc6b2db5dac86aa7e1995a233fd39861249a7 | |
parent | d31b30a6bb044bedd4e296c4cbb3e0fc9c2cb7b6 (diff) |
crashreporter: apparent null dereference
Change-Id: I83f0765311ffdb34a0c08aaf616fdbde4e5110a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147055
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
-rw-r--r-- | sd/source/ui/app/sdmod1.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx index 927b37ae830e..573ee853069b 100644 --- a/sd/source/ui/app/sdmod1.cxx +++ b/sd/source/ui/app/sdmod1.cxx @@ -493,9 +493,12 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest const & rReq ) // was open if (pFrame && SfxApplication::IsTipOfTheDayDue() && !SfxApplication::IsHeadlessOrUITest()) { - // tdf#127946 pass in argument for dialog parent - SfxUnoFrameItem aDocFrame(SID_FILLFRAME, pFrame->GetFrameInterface()); - GetDispatcher()->ExecuteList(SID_TIPOFTHEDAY, SfxCallMode::SLOT, {}, { &aDocFrame }); + if (SfxDispatcher* pDispatcher = GetDispatcher()) + { + // tdf#127946 pass in argument for dialog parent + SfxUnoFrameItem aDocFrame(SID_FILLFRAME, pFrame->GetFrameInterface()); + pDispatcher->ExecuteList(SID_TIPOFTHEDAY, SfxCallMode::SLOT, {}, { &aDocFrame }); + } } } } |