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

coverity#737139 Uncaught exception

Change-Id: I75fc43e365afa44b54c27aeb8887f9e37954f03b
üst 5adc8214
......@@ -305,6 +305,8 @@ static OUString getMimetypeForDocument( const Reference< XComponentContext >& xC
const Reference< XComponent >& xDoc ) throw()
{
OUString aDocMimetype;
try
{
// get document service name
Reference< com::sun::star::frame::XStorable > xStore( xDoc, UNO_QUERY );
Reference< frame::XModuleManager2 > xModuleManager = frame::ModuleManager::create(xContext);
......@@ -364,6 +366,10 @@ static OUString getMimetypeForDocument( const Reference< XComponentContext >& xC
}
}
}
}
catch (...)
{
}
return aDocMimetype;
}
......
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