summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-09-08 13:48:01 +0200
committerCaolán McNamara <caolanm@redhat.com>2022-10-03 10:08:00 +0200
commitd259d6c400f9ba4162790a4823735efeb1b66d06 (patch)
tree060c6aa84d71f96df677f7dab4ada45e40932a18
parent1662a9bc131d4624a34db4f71953cfb1ecda4f69 (diff)
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/+/140762 Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-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 6875b9fb9b45..1f77a786dce6 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -510,6 +510,11 @@ void SalInstanceWidget::thaw()
void SalInstanceWidget::set_busy_cursor(bool bBusy)
{
+ if (!m_xWidget)
+ {
+ return;
+ }
+
if (bBusy)
m_xWidget->EnterWait();
else