summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-09-08 13:48:01 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2022-09-12 16:10:06 +0200
commit8c904116d660f67341540860cc4a1fb10bc6b0d1 (patch)
tree69d3bbea2c9de4b3cc02bbf34f6b5855090594c2
parentResolves: tdf#150766 Listen to entire shared formula group instead of a slice (diff)
downloadcore-8c904116d660f67341540860cc4a1fb10bc6b0d1.tar.gz
core-8c904116d660f67341540860cc4a1fb10bc6b0d1.zip
vcl: fix crash in SalInstanceWidget::set_busy_cursor()
Crashreport signature: Fatal signal received: SIGSEGV code: 128 for address: 0x0 program/libmergedlo.so vcl::Window::LeaveWait() vcl/source/window/mouse.cxx:640 program/libsclo.so ScSpellingEngine::ShowTableWrapDialog() sc/source/ui/view/spelleng.cxx:315 program/libsclo.so ScConversionEngineBase::FindNextConversionCell() sc/source/ui/view/spelleng.cxx:168 program/libsclo.so ScSpellDialogChildWindow::GetNextWrongSentence(bool) /opt/rh/devtoolset-10/root/usr/include/c++/10/bits/unique_ptr.h:173 Change-Id: I298789211d6ee038bd5a9a7bff7cf9ae4f132a91 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139731 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins (cherry picked from commit 37d778b601966434ff6042373c1a82d4687fd034) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139665 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--vcl/source/app/salvtables.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index b6db52c8b87d..e43481b50ea8 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -517,6 +517,11 @@ void SalInstanceWidget::thaw()
void SalInstanceWidget::set_busy_cursor(bool bBusy)
{
+ if (!m_xWidget)
+ {
+ return;
+ }
+
if (bBusy)
m_xWidget->EnterWait();
else