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

coverity#1169848 Uncaught exception

Change-Id: I27903e8b6bbf28a33601d793719ac5bcd3309db0
üst 2234f541
...@@ -278,6 +278,8 @@ void SAL_CALL ModuleManager::replaceByName(const OUString& sName , ...@@ -278,6 +278,8 @@ void SAL_CALL ModuleManager::replaceByName(const OUString& sName ,
css::lang::WrappedTargetException , css::lang::WrappedTargetException ,
css::uno::RuntimeException ) css::uno::RuntimeException )
{ {
try
{
::comphelper::SequenceAsHashMap lProps(aValue); ::comphelper::SequenceAsHashMap lProps(aValue);
if (lProps.empty() ) if (lProps.empty() )
{ {
...@@ -327,6 +329,14 @@ void SAL_CALL ModuleManager::replaceByName(const OUString& sName , ...@@ -327,6 +329,14 @@ void SAL_CALL ModuleManager::replaceByName(const OUString& sName ,
} }
::comphelper::ConfigurationHelper::flush(xCfg); ::comphelper::ConfigurationHelper::flush(xCfg);
}
catch (const css::beans::IllegalTypeException& e)
{
css::uno::Any a(e);
throw css::lang::WrappedTargetException(
OUString("ModuleManager::replaceByName: IllegalType exception"),
css::uno::Reference<css::uno::XInterface>(*this), a);
}
} }
css::uno::Any SAL_CALL ModuleManager::getByName(const OUString& sName) css::uno::Any SAL_CALL ModuleManager::getByName(const OUString& sName)
......
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