summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-14 10:04:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-14 12:02:47 +0000
commit275eb9c78e90c484dfb985303a75969659270ed7 (patch)
tree96d8c6227f03047a27a208e0541fd171ecbb72bf /forms
parent99bada2f4cd3cf738d384a0bcef4dc4db3880cc2 (diff)
coverity#706540 Uncaught exception
Change-Id: I9dabd74824ec7cffe5371ed8be202ad27fecc80d
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/FormComponent.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index b7a3a9efec38..c6e4a8cb1ead 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -643,7 +643,19 @@ void SAL_CALL OControlModel::setParent(const Reference< XInterface >& _rxParent)
OUString SAL_CALL OControlModel::getName() throw(RuntimeException, std::exception)
{
OUString aReturn;
- OPropertySetHelper::getFastPropertyValue(PROPERTY_ID_NAME) >>= aReturn;
+ try
+ {
+ OPropertySetHelper::getFastPropertyValue(PROPERTY_ID_NAME) >>= aReturn;
+ }
+ catch (const css::beans::UnknownPropertyException&)
+ {
+ css::uno::Any a(cppu::getCaughtException());
+ throw WrappedTargetRuntimeException(
+ "OControlModel::getName",
+ *const_cast< OControlModel* >( this ),
+ a
+ );
+ }
return aReturn;
}