coverity#1210096 Uncaught exception
Change-Id: I1d06c7a6a61556c2b501a16c224ccc6fe52307d0
This commit is contained in:
@@ -1526,13 +1526,19 @@ StarBASIC* BasicManager::CreateLib( const OUString& rLibName, const OUString& Pa
|
||||
if( !pLib )
|
||||
{
|
||||
if( !LinkTargetURL.isEmpty())
|
||||
{
|
||||
try
|
||||
{
|
||||
SotStorageRef xStorage = new SotStorage(false, LinkTargetURL, STREAM_READ | STREAM_SHARE_DENYWRITE);
|
||||
if (!xStorage->GetError())
|
||||
{
|
||||
pLib = AddLib(*xStorage, rLibName, true);
|
||||
}
|
||||
|
||||
}
|
||||
catch (const css::ucb::ContentCreationException& e)
|
||||
{
|
||||
SAL_WARN("basic", "BasicManager::RemoveLib: Caught exception: " << e.Message);
|
||||
}
|
||||
DBG_ASSERT( pLib, "XML Import: Linked basic library could not be loaded");
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user