Blob Blame History Raw
From ff01c5e8126645de91891ce3b9acdca2b0c1af4f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
Date: Wed, 13 Jul 2016 16:32:43 +0100
Subject: [PATCH] Related: rhbz#1343766 a11y queries during dispose trigger
 listbox crashes
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

though not able to reproduce, I have an in-house complaint similar to

commit f120abb446bf3f5230ed06a3b148654dde36bb94
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Wed Jun 8 11:35:15 2016 +0100

    Resolves: rhbz#1343766 a11y queries during dispose trigger combobox crashes

except with a listbox in the bt

(cherry picked from commit c615943bda57eadfa73c14a7314938aabe0bd16f)

Change-Id: Id31561e009a1f0ec9272a0e7216296e4017e5688
---
 vcl/source/control/lstbox.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index e15d09e..121e2c0 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -1208,6 +1208,8 @@ void ListBox::EnableMultiSelection( bool bMulti, bool bStackSelection )
 
 bool ListBox::IsMultiSelectionEnabled() const
 {
+    if (!mpImplLB)
+        return false;
     return mpImplLB->IsMultiSelectionEnabled();
 }
 
-- 
2.7.4