summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-10 09:22:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-10 21:12:54 +0100
commit97bfac4861bf9d8f3223b66474fa24d185d1223a (patch)
tree9af7c4b937298c2d86e7f3a088cad8e6d67df704 /basic
parent128941bfe04d9333c538fded6ca4f161e864bf79 (diff)
coverity#1213529 Uncaught exception
and a gadzillion more, e.g. coverity#1213526, coverity#1213527 Change-Id: I08a9cb078963b4adf0ea6e201e31ae7eefbf92d9
Diffstat (limited to 'basic')
-rw-r--r--basic/source/basmgr/basmgr.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 09486cf594da..3e41094df8c2 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -63,6 +63,7 @@
#include <com/sun/star/script/ModuleInfo.hpp>
#include <com/sun/star/script/vba/XVBACompatibility.hpp>
#include <com/sun/star/script/vba/XVBAModuleInfo.hpp>
+#include <com/sun/star/ucb/ContentCreationException.hpp>
#include <cppuhelper/implbase1.hxx>
@@ -1033,6 +1034,7 @@ BasicLibInfo* BasicManager::CreateLibInfo()
bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurStorage, bool bInfosOnly )
{
+ try {
DBG_ASSERT( pLibInfo, "LibInfo!?" );
OUString aStorageName( pLibInfo->GetStorageName() );
@@ -1132,6 +1134,10 @@ bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurStora
return bLoaded;
}
}
+ }
+ catch (const css::ucb::ContentCreationException&)
+ {
+ }
return false;
}