Resolves: rhbz#1012390 avoid scary 'the sky is falling' a11y warning

Change-Id: I543e00048544eb7835cf1f0f31794e5a8bbb1962
This commit is contained in:
Caolán McNamara
2013-10-03 14:57:12 +01:00
parent f35e38e3a9
commit ec13016a3c

View File

@@ -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 )
{