diff options
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/FormComponent.cxx | 14 |
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; } |