coverity#1019393 Uncaught exception

Change-Id: I818a91a3090392efed46700b5e2d77d7f1e3bdb9
This commit is contained in:
Caolán McNamara
2014-11-05 10:38:32 +00:00
parent 8310ff534e
commit 7ddfa141d3

View File

@@ -39,6 +39,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
if( argc < 4 ) if( argc < 4 )
return 1; return 1;
try
{
OUString aBaseURL, aTmpURL, aSrcURL, aDstURL; OUString aBaseURL, aTmpURL, aSrcURL, aDstURL;
TreeVisitorFactorySharedPtr pTreeFactory; TreeVisitorFactorySharedPtr pTreeFactory;
@@ -73,6 +75,12 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
pdfi::PDFIRawAdaptor aAdaptor( aEnv.getComponentContext() ); pdfi::PDFIRawAdaptor aAdaptor( aEnv.getComponentContext() );
aAdaptor.setTreeVisitorFactory(pTreeFactory); aAdaptor.setTreeVisitorFactory(pTreeFactory);
aAdaptor.odfConvert( aSrcURL, new OutputWrap(aDstURL), NULL ); aAdaptor.odfConvert( aSrcURL, new OutputWrap(aDstURL), NULL );
}
catch (const uno::Exception& e)
{
SAL_WARN("vcl.app", "Fatal exception: " << e.Message);
return 1;
}
return 0; return 0;
} }