office-gobmx/sfx2/source
Miklos Vajna 7cfcfa30aa sfx2 lok: fix crash in SfxLokHelper::notifyUpdate()
Crashreport signature:

> kit-09946-09946 2024-11-25 16:46:13.180120 +0000 [ kitbroker_498 ] SIG   Fatal signal received: SIGSEGV code: 1 for address: 0x0
> program/libmergedlo.so
>       SfxLokHelper::notifyUpdate(SfxViewShell const*, int)
>               sfx2/source/view/lokhelper.cxx:1072
> program/libswlo.so
>       SwViewShell::GetSfxViewShell() const
>               sw/inc/viewsh.hxx:472
> program/libswlo.so
>       SwCursorShell::UpdateCursor(unsigned short, bool)
>               sw/source/core/crsr/crsrsh.cxx:2382
...
> program/libmergedlo.so
>       framework::Desktop::loadComponentFromURL(rtl::OUString const&, rtl::OUString const&, int, com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&)
>               framework/source/services/desktop.cxx:592

I.e. it can happen that during load we don't yet have a view, handle
this in SfxLokHelper::notifyUpdate() till it takes a pointer and not a
reference.

Change-Id: Ifa5d9300029076e91ba8722152a7d91a1f2ecbc0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177343
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-11-26 16:22:22 +01:00
..
accessibility
appl Use specific SvtModuleOptions::Is*Installed for clarity 2024-11-23 09:45:38 +01:00
bastyp
commandpopup
config
control PVS: V560 A part of conditional expression is always true 2024-11-25 14:12:34 +01:00
devtools
dialog Use specific SvtModuleOptions::Is*Installed for clarity 2024-11-23 09:45:38 +01:00
doc Use specific SvtModuleOptions::Is*Installed for clarity 2024-11-23 09:45:38 +01:00
explorer
inc
inet
notebookbar notebookbar: Drop unnecessary static_cast 2024-11-22 00:15:53 +01:00
notify Catch exceptions thrown when notifying individual listeners 2024-11-20 17:14:14 +01:00
safemode
sidebar
statbar
styles
toolbox
view sfx2 lok: fix crash in SfxLokHelper::notifyUpdate() 2024-11-26 16:22:22 +01:00