diff options
author | Andre Fischer <af@openoffice.org> | 2009-04-17 12:10:45 +0000 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2009-04-17 12:10:45 +0000 |
commit | 1c0eaccc7afe441169b154f2cecc8c15b31988ad (patch) | |
tree | 725c2bc2900443a5b0817aa3e1baeb8a255ae96f /slideshow/source/engine/eventmultiplexer.cxx | |
parent | 789327979618b8e6d6cb1577167e1999010dc23c (diff) |
#i69530# Access views in forEachView only if they still exist.
Diffstat (limited to 'slideshow/source/engine/eventmultiplexer.cxx')
-rw-r--r-- | slideshow/source/engine/eventmultiplexer.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/slideshow/source/engine/eventmultiplexer.cxx b/slideshow/source/engine/eventmultiplexer.cxx index 181a787301b7..a75d9c017987 100644 --- a/slideshow/source/engine/eventmultiplexer.cxx +++ b/slideshow/source/engine/eventmultiplexer.cxx @@ -448,7 +448,15 @@ void EventMultiplexerImpl::forEachView( XSlideShowViewFunc pViewMethod ) for( UnoViewVector::const_iterator aIter( mrViewContainer.begin() ), aEnd( mrViewContainer.end() ); aIter != aEnd; ++aIter ) { - ((*aIter)->getUnoView().get()->*pViewMethod)( mxListener.get() ); + uno::Reference<presentation::XSlideShowView> xView ((*aIter)->getUnoView()); + if (xView.is()) + { + (xView.get()->*pViewMethod)( mxListener.get() ); + } + else + { + OSL_ASSERT(xView.is()); + } } } } |