diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-19 10:05:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-19 11:57:10 +0100 |
commit | cdb4aae582fd0bd553f2b328f1601caa990e5b58 (patch) | |
tree | 6bc018b5aaf2f5958458994d9c9efe79e33fbd9e /unotools/source | |
parent | 25d203e727acb5ea83000eba90a23beba614f2a8 (diff) |
survive a missing history
Diffstat (limited to 'unotools/source')
-rw-r--r-- | unotools/source/config/historyoptions.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/unotools/source/config/historyoptions.cxx b/unotools/source/config/historyoptions.cxx index 8461dca4004e..dd18d399bc10 100644 --- a/unotools/source/config/historyoptions.cxx +++ b/unotools/source/config/historyoptions.cxx @@ -189,9 +189,13 @@ SvtHistoryOptions_Impl::~SvtHistoryOptions_Impl() //***************************************************************************************************************** sal_uInt32 SvtHistoryOptions_Impl::GetSize( EHistoryType eHistory ) { - sal_uInt32 nSize = 0 ; css::uno::Reference< css::beans::XPropertySet > xListAccess(m_xCommonXCU, css::uno::UNO_QUERY); + if (!xListAccess.is()) + return 0; + + sal_uInt32 nSize = 0 ; + try { switch( eHistory ) |