diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-10 09:22:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-10 21:12:54 +0100 |
commit | 97bfac4861bf9d8f3223b66474fa24d185d1223a (patch) | |
tree | 9af7c4b937298c2d86e7f3a088cad8e6d67df704 /basic | |
parent | 128941bfe04d9333c538fded6ca4f161e864bf79 (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.cxx | 6 |
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; } |