office-gobmx/sfx2/source/view
Miklos Vajna 9f25e61d0e sfx2 lok: fix crash in SfxLokHelper::notifyOtherViewsUpdatePerViewId()
Crashreport signature:

> SIG   Fatal signal received: SIGSEGV code: 1 for address: 0x0
> program/libmergedlo.so
>       SfxLokHelper::notifyOtherViewsUpdatePerViewId(SfxViewShell const*, int)
>               sfx2/source/view/lokhelper.cxx:1098
> program/libswlo.so
>       SwSelPaintRects::Show(std::vector<rtl::OString, std::allocator<rtl::OString> >*)
>               sw/source/core/crsr/viscrs.cxx:514
...
> program/libswlo.so
>       SwWrtShell::SwWrtShell(SwDoc&, vcl::Window*, SwView&, SwViewOption const*)
>               sw/source/uibase/wrtsh/wrtsh1.cxx:2032
...
> 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, similar to
commit a2b22f5b551cb2030cd29d3dd3510fca42a0bfc1 (sfx2 lok: fix crash in
SfxLokHelper::notifyUpdate(), 2024-11-26).

Change-Id: Id17a61296a181a2ba4909b633d46a3c9d7aacb02
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177525
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-11-29 13:36:06 +01:00
..
classificationcontroller.cxx
classificationhelper.cxx
frame.cxx
frame2.cxx
frmload.cxx
impframe.hxx
impviewframe.hxx
ipclient.cxx
lokcharthelper.cxx
lokhelper.cxx
lokstarmathhelper.cxx
printer.cxx
prnmon.hxx
sfxbasecontroller.cxx
userinputinterception.cxx
viewfac.cxx
viewfrm.cxx
viewfrm2.cxx
viewimp.hxx
viewprn.cxx
viewsh.cxx