diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-13 13:16:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-13 13:16:38 +0100 |
commit | b19194ec9298d78aeab8667191aad60e7de07449 (patch) | |
tree | b07d791baabd93831ea376e8704ebb15cb826236 /unotools/source | |
parent | a832f5bf2f6ec705653ca02642ba7023af31840c (diff) |
handle missing values gracefully
Diffstat (limited to 'unotools/source')
-rw-r--r-- | unotools/source/config/localisationoptions.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/unotools/source/config/localisationoptions.cxx b/unotools/source/config/localisationoptions.cxx index e5e9577035e5..b38f4d42fb97 100644 --- a/unotools/source/config/localisationoptions.cxx +++ b/unotools/source/config/localisationoptions.cxx @@ -194,13 +194,12 @@ SvtLocalisationOptions_Impl::SvtLocalisationOptions_Impl() // Follow assignment use order of values in relation to our list of key names! DBG_ASSERT( !(seqNames.getLength()!=seqValues.getLength()), "SvtLocalisationOptions_Impl::SvtLocalisationOptions_Impl()\nI miss some values of configuration keys!\n" ); - // Copy values from list in right order to ouer internal member. + // Copy values from list in right order to our internal member. sal_Int32 nPropertyCount = seqValues.getLength(); for( sal_Int32 nProperty=0; nProperty<nPropertyCount; ++nProperty ) { - // Safe impossible cases. - // Check any for valid value. - DBG_ASSERT( !(seqValues[nProperty].hasValue()==sal_False), "SvtLocalisationOptions_Impl::SvtLocalisationOptions_Impl()\nInvalid property value detected!\n" ); + if (!seqValues[nProperty].hasValue()) + continue; switch( nProperty ) { case PROPERTYHANDLE_AUTOMNEMONIC : { |