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>
This commit is contained in:
Caolán McNamara 2020-03-10 14:18:52 +00:00
parent 59fdea242f
commit 3fb0d46b1e

View file

@ -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();
}