summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-03 14:57:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-03 14:57:46 +0100
commitec13016a3cefc2c2f9af799e5c30799d56670ad1 (patch)
tree2cd7ed44a42cc8c933a06e2f6104ddb6dc14de41 /vcl/unx
parentf35e38e3a95275ed86f5b777870d1614ec99bda0 (diff)
Resolves: rhbz#1012390 avoid scary 'the sky is falling' a11y warning
Change-Id: I543e00048544eb7835cf1f0f31794e5a8bbb1962
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk/a11y/atklistener.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx
index 2ff3f0c0dcfd..b9f8d044220c 100644
--- a/vcl/unx/gtk/a11y/atklistener.cxx
+++ b/vcl/unx/gtk/a11y/atklistener.cxx
@@ -148,7 +148,7 @@ void AtkListener::handleChildAdded(
const uno::Reference< accessibility::XAccessibleContext >& rxParent,
const uno::Reference< accessibility::XAccessible>& rxAccessible)
{
- AtkObject * pChild = atk_object_wrapper_ref( rxAccessible );
+ AtkObject * pChild = rxAccessible.is() ? atk_object_wrapper_ref( rxAccessible ) : NULL;
if( pChild )
{