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

coverity#1215393 Uncaught exception

Change-Id: I96575d843fd982866c89000bb4426bd5e11c56d1
üst 680438cb
...@@ -46,20 +46,28 @@ void Main(); ...@@ -46,20 +46,28 @@ void Main();
SAL_IMPLEMENT_MAIN() SAL_IMPLEMENT_MAIN()
{ {
tools::extendApplicationEnvironment(); try
{
// create the global service-manager tools::extendApplicationEnvironment();
Reference< XComponentContext > xContext = defaultBootstrap_InitialComponentContext();
Reference< XMultiServiceFactory > xServiceManager( xContext->getServiceManager(), UNO_QUERY ); // create the global service-manager
Reference< XComponentContext > xContext = defaultBootstrap_InitialComponentContext();
if( !xServiceManager.is() ) Reference< XMultiServiceFactory > xServiceManager( xContext->getServiceManager(), UNO_QUERY );
Application::Abort( "Failed to bootstrap" );
if( !xServiceManager.is() )
comphelper::setProcessServiceFactory( xServiceManager ); Application::Abort( "Failed to bootstrap" );
InitVCL(); comphelper::setProcessServiceFactory( xServiceManager );
::Main();
DeInitVCL(); InitVCL();
::Main();
DeInitVCL();
}
catch (const Exception& e)
{
SAL_WARN("vcl.app", "Fatal exception: " << e.Message);
return 1;
}
return 0; return 0;
} }
......
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