summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-03-10 14:18:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-03-10 16:24:15 +0100
commit3fb0d46b1ec39cb6a5deb8521f7a4e489c194841 (patch)
treebe7bcb110c1a7c17ec53a4438a408b4311ea3923
parent59fdea242f594e8994eb5a68e22bef10b7740590 (diff)
Resolves: tdf#131248 a11y crash when closing SQL Edit Query
Change-Id: I39db7b352dd460f46092a054bfa89f5acdda54c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90259 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-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 d69b3a64ea81..fe768e83956b 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -1088,6 +1088,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();
}