sfx2: check saved last tab page name exists before restoring it
commit6e770a30cea55142892b8ef0ddb515ef1c77d2ea
authorCaolán McNamara <caolanm@redhat.com>
Mon, 8 Aug 2022 15:01:31 +0000 (8 17:01 +0200)
committerXisco Fauli <xiscofauli@libreoffice.org>
Tue, 9 Aug 2022 10:06:24 +0000 (9 12:06 +0200)
treeb8a86d829d56b54594a3848fe6f1f3f5b091e10a
parent43ba49cd33af6bc8328edb0cb8c289bab266e346
sfx2: check saved last tab page name exists before restoring it

since GetPage might return nullptr on a nonexisting page

See https://crashreport.libreoffice.org/stats/signature/SfxHelpIndexWindow_Impl::ActivatePageHdl(rtl::OString%20const%20&)

Change-Id: I26e21f783645e8a87d56cbe76c0126de8947bf3e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138015
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
sfx2/source/appl/newhelp.cxx