From 3fb0d46b1ec39cb6a5deb8521f7a4e489c194841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 10 Mar 2020 14:18:52 +0000 Subject: [PATCH] Resolves: tdf#131248 a11y crash when closing SQL Edit Query MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I39db7b352dd460f46092a054bfa89f5acdda54c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90259 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/edit/vclmedit.cxx | 3 +++ 1 file changed, 3 insertions(+) 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(); }