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

coverity#1215389 Uncaught exception

Change-Id: I107817e730ca0bd94d66ecf9719c3a6eb273e4f1
üst 32ae77e2
...@@ -43,19 +43,27 @@ void Main(); ...@@ -43,19 +43,27 @@ void Main();
SAL_IMPLEMENT_MAIN() SAL_IMPLEMENT_MAIN()
{ {
tools::extendApplicationEnvironment(); try
{
Reference< XComponentContext > xContext = defaultBootstrap_InitialComponentContext(); tools::extendApplicationEnvironment();
Reference< XMultiServiceFactory > xServiceManager( xContext->getServiceManager(), UNO_QUERY );
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