summaryrefslogtreecommitdiff
path: root/unotools/source
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source')
-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 )