diff options
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/property/propertysethelper.cxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/comphelper/source/property/propertysethelper.cxx b/comphelper/source/property/propertysethelper.cxx index 2c319cd042f2..a8a6e6a964d5 100644 --- a/comphelper/source/property/propertysethelper.cxx +++ b/comphelper/source/property/propertysethelper.cxx @@ -153,16 +153,15 @@ Sequence< Any > SAL_CALL PropertySetHelper::getPropertyValues(const Sequence< OU bUnknown = nullptr == pEntries[n]; } - if( !bUnknown ) - { - pEntries[nCount] = nullptr; - Sequence< Any > aValues(nCount); - aValues.realloc(nCount); - _getPropertyValues( pEntries.get(), aValues.getArray() ); - return aValues; - } - else + if( bUnknown ) throw RuntimeException( *pNames, static_cast< XPropertySet* >( this ) ); + + pEntries[nCount] = nullptr; + Sequence< Any > aValues(nCount); + aValues.realloc(nCount); + _getPropertyValues( pEntries.get(), aValues.getArray() ); + return aValues; + } void SAL_CALL PropertySetHelper::addPropertiesChangeListener( const Sequence< OUString >&, const Reference< XPropertiesChangeListener >& ) |