diff --git a/chart2/source/controller/accessibility/AccessibleBase.cxx b/chart2/source/controller/accessibility/AccessibleBase.cxx index 497e1e546a59..9d40cc5e60f6 100644 --- a/chart2/source/controller/accessibility/AccessibleBase.cxx +++ b/chart2/source/controller/accessibility/AccessibleBase.cxx @@ -911,7 +911,7 @@ void SAL_CALL AccessibleBase::removeAccessibleEventListener( const Reference< XA { MutexGuard aGuard( GetMutex() ); - if ( xListener.is() ) + if ( xListener.is() && m_nEventNotifierId) { sal_Int32 nListenerCount = ::comphelper::AccessibleEventNotifier::removeEventListener( m_nEventNotifierId, xListener ); if ( !nListenerCount )