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

coverity#1215391 Uncaught exception

Change-Id: I8a57ad303666cfcb3e338fc1933c29a887240a5a
üst 45ae39b3
...@@ -48,19 +48,27 @@ void Main(); ...@@ -48,19 +48,27 @@ void Main();
SAL_IMPLEMENT_MAIN() SAL_IMPLEMENT_MAIN()
{ {
tools::extendApplicationEnvironment(); try
{
tools::extendApplicationEnvironment();
Reference< XComponentContext > xContext = defaultBootstrap_InitialComponentContext(); Reference< XComponentContext > xContext = defaultBootstrap_InitialComponentContext();
Reference< XMultiServiceFactory > xServiceManager( xContext->getServiceManager(), UNO_QUERY ); Reference< XMultiServiceFactory > xServiceManager( xContext->getServiceManager(), UNO_QUERY );
if( !xServiceManager.is() ) if( !xServiceManager.is() )
Application::Abort( "Failed to bootstrap" ); Application::Abort( "Failed to bootstrap" );
comphelper::setProcessServiceFactory( xServiceManager ); comphelper::setProcessServiceFactory( xServiceManager );
InitVCL(); InitVCL();
::Main(); ::Main();
DeInitVCL(); 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