summaryrefslogtreecommitdiff
path: root/vcl/aqua/source/a11y
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/aqua/source/a11y')
-rw-r--r--vcl/aqua/source/a11y/documentfocuslistener.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/vcl/aqua/source/a11y/documentfocuslistener.cxx b/vcl/aqua/source/a11y/documentfocuslistener.cxx
index c895628b8ebc..2bb1429bc9fe 100644
--- a/vcl/aqua/source/a11y/documentfocuslistener.cxx
+++ b/vcl/aqua/source/a11y/documentfocuslistener.cxx
@@ -8,7 +8,7 @@
*
* $RCSfile: documentfocuslistener.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
* This file is part of OpenOffice.org.
*
@@ -161,10 +161,13 @@ void DocumentFocusListener::attachRecursive(
const Reference< XAccessibleContext >& xContext
) throw (IndexOutOfBoundsException, RuntimeException)
{
- Reference< XAccessibleStateSet > xStateSet = xContext->getAccessibleStateSet();
+ if( xContext.is() )
+ {
+ Reference< XAccessibleStateSet > xStateSet = xContext->getAccessibleStateSet();
- if( xStateSet.is() )
- attachRecursive(xAccessible, xContext, xStateSet);
+ if( xStateSet.is() )
+ attachRecursive(xAccessible, xContext, xStateSet);
+ }
}
//------------------------------------------------------------------------------