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

coverity#1215389 Uncaught exception

Change-Id: I107817e730ca0bd94d66ecf9719c3a6eb273e4f1
üst 32ae77e2
...@@ -43,6 +43,8 @@ void Main(); ...@@ -43,6 +43,8 @@ void Main();
SAL_IMPLEMENT_MAIN() SAL_IMPLEMENT_MAIN()
{ {
try
{
tools::extendApplicationEnvironment(); tools::extendApplicationEnvironment();
Reference< XComponentContext > xContext = defaultBootstrap_InitialComponentContext(); Reference< XComponentContext > xContext = defaultBootstrap_InitialComponentContext();
...@@ -56,6 +58,12 @@ SAL_IMPLEMENT_MAIN() ...@@ -56,6 +58,12 @@ SAL_IMPLEMENT_MAIN()
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