summaryrefslogtreecommitdiff
path: root/vcl/aqua/source/a11y
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-07-25 08:08:11 +0000
committerOliver Bolte <obo@openoffice.org>2008-07-25 08:08:11 +0000
commitce061a7c2dcbd33fd92df3ba83320568fd969076 (patch)
treefa13a20e554103c2ccf01b3ebebff3cc1953c5d0 /vcl/aqua/source/a11y
parent5ee6445bffd95ac9f0f0e3175ef0f2ce9a0ea68f (diff)
INTEGRATION: CWS aqua11y02 (1.2.30); FILE MERGED
2008/07/16 09:39:20 fne 1.2.30.1: #i90575# added guarding if
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);
+ }
}
//------------------------------------------------------------------------------