Kaydet (Commit) 93dd12a1 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1215382 Uncaught exception

and hopefully a gadzillion more, but I've said that before :-(

Change-Id: I2e36485ae2ce831fdf250464b254d42f5bc55fe3
üst 4cf56e05
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment