summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-03-10 14:18:52 +0000
committerXisco Faulí <xiscofauli@libreoffice.org>2020-03-11 15:12:05 +0100
commit156f14c6632df104186feeba250abdf7de4a2e30 (patch)
treeece3922b6e011c1b282a9b0853679174f8e56675 /vcl
parentbd23b2d3fd51861baf18b0878c511d028537175a (diff)
Resolves: tdf#131248 a11y crash when closing SQL Edit Query
Change-Id: I39db7b352dd460f46092a054bfa89f5acdda54c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90273 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/edit/vclmedit.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index e21d5c4c8f57..49b63e9ae3e9 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -1087,6 +1087,9 @@ void VclMultiLineEdit::SetReadOnly( bool bReadOnly )
bool VclMultiLineEdit::IsReadOnly() const
{
+ if (!pImpVclMEdit) // might be called from within the dtor, when pImpVclMEdit == NULL is a valid state
+ return true;
+
return pImpVclMEdit->IsReadOnly();
}