summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-22 21:00:10 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-23 08:54:37 +0100
commit93dd12a160f2d64c06921d413f092494e52f283a (patch)
treeadf7aa5cab7641811eed42c5f4923bebaf0cd296 /sfx2
parent4cf56e058488ce7c24f992f1e5125676b7064ede (diff)
coverity#1215382 Uncaught exception
and hopefully a gadzillion more, but I've said that before :-( Change-Id: I2e36485ae2ce831fdf250464b254d42f5bc55fe3
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objxtor.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index b0b234733e86..fabd427c74c5 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -842,7 +842,14 @@ void SfxObjectShell::InitBasicManager_Impl()
*/
#ifndef DISABLE_SCRIPTING
DBG_ASSERT( !pImp->bBasicInitialized && !pImp->pBasicManager->isValid(), "Lokaler BasicManager bereits vorhanden");
- pImp->pBasicManager->reset( BasicManagerRepository::getDocumentBasicManager( GetModel() ) );
+ try
+ {
+ pImp->pBasicManager->reset( BasicManagerRepository::getDocumentBasicManager( GetModel() ) );
+ }
+ catch (const css::ucb::ContentCreationException& e)
+ {
+ SAL_WARN("sfx.doc", "caught exception " << e.Message);
+ }
DBG_ASSERT( pImp->pBasicManager->isValid(), "SfxObjectShell::InitBasicManager_Impl: did not get a BasicManager!" );
pImp->bBasicInitialized = true;
#endif