From cdb4aae582fd0bd553f2b328f1601caa990e5b58 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 19 Oct 2010 10:05:41 +0100 Subject: survive a missing history --- unotools/source/config/historyoptions.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'unotools/source') 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 ) -- cgit