summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-08-17 08:24:05 +0200
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-08-17 10:03:09 +0200
commitbcb94a7da148f9da6bbb2b7fb9e4cda72e2de5d2 (patch)
treef95658738d4b99a381fd90c70348933395f16a91 /sfx2
parentc906e4b19fcbe578a21950a7ecb2fd3b5cfbc2ef (diff)
sfx2: fix crash in SfxLokHelper::notifyOtherView()
Crashreport signature: Fatal signal received: SIGSEGV code: 1 for address: 0x0 program/libmergedlo.so SfxLokHelper::notifyOtherView(SfxViewShell const*, SfxViewShell const*, int, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&) sfx2/source/view/lokhelper.cxx:473 program/libmergedlo.so ImpEditView::ShowCursor(bool, bool) editeng/source/editeng/impedit.cxx:1423 program/../program/libsclo.so ScViewData::SetEditEngine(ScSplitPos, ScEditEngineDefaulter*, vcl::Window*, short, int) sc/source/ui/view/viewdata.cxx:1635 program/libsclo.so ScTabView::UpdateEditView() sc/source/ui/view/tabview3.cxx:2190 Change-Id: I219a1e9685db9bc3ea03d6ab67ff5db74aac9343 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155753 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/lokhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index b4d873971416..b24cee1ecc55 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -466,7 +466,7 @@ void SfxLokHelper::notifyOtherView(const SfxViewShell* pThisView, SfxViewShell c
int nType, const boost::property_tree::ptree& rTree)
{
assert(pThisView != nullptr && "pThisView must be valid");
- if (DisableCallbacks::disabled())
+ if (DisableCallbacks::disabled() || !pOtherView)
return;
const int viewId = SfxLokHelper::getView(pThisView);