summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-09-08 13:48:01 +0200
committerAron Budea <aron.budea@collabora.com>2022-11-09 22:46:13 +0100
commit9ff2d7bca7a52e22f8186f58ad14669cf78baadf (patch)
treeb46ddccc20b42b3ce9caa743ee4db2f79c0b955f
parent2102886f0d79128d2628797c56d20254af2b12be (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/+/139652 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit 3038c8b971940a3ff71a99e6de6cd6aa3c8ecd78) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142445 Reviewed-by: Aron Budea <aron.budea@collabora.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 f3797237e1fa..8e0e05af8434 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -482,6 +482,11 @@ void SalInstanceWidget::thaw() { m_xWidget->SetUpdateMode(true); }
void SalInstanceWidget::set_busy_cursor(bool bBusy)
{
+ if (!m_xWidget)
+ {
+ return;
+ }
+
if (bBusy)
m_xWidget->EnterWait();
else