diff options
Diffstat (limited to 'sw/source/uibase/dbui/dbmgr.cxx')
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index 2d85ff75a1eb..9adf98c24340 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -3118,8 +3118,11 @@ SwDoc* SwDBManager::getDoc() const void SwDBManager::releaseRevokeListener() { - pImpl->m_xDataSourceRemovedListener->Dispose(); - pImpl->m_xDataSourceRemovedListener.clear(); + if (pImpl->m_xDataSourceRemovedListener.is()) + { + pImpl->m_xDataSourceRemovedListener->Dispose(); + pImpl->m_xDataSourceRemovedListener.clear(); + } } SwConnectionDisposedListener_Impl::SwConnectionDisposedListener_Impl(SwDBManager& rManager) |