summaryrefslogtreecommitdiff
path: root/unotools/source/config/historyoptions.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-19 10:05:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-19 11:57:10 +0100
commitcdb4aae582fd0bd553f2b328f1601caa990e5b58 (patch)
tree6bc018b5aaf2f5958458994d9c9efe79e33fbd9e /unotools/source/config/historyoptions.cxx
parent25d203e727acb5ea83000eba90a23beba614f2a8 (diff)
survive a missing history
Diffstat (limited to 'unotools/source/config/historyoptions.cxx')
-rw-r--r--unotools/source/config/historyoptions.cxx6
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 )