comphelper/source/misc/documentiologring.cxx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
New commits: commit 962d4b35bd53e3d37849acd325dc57861c930972 Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu Dec 19 20:52:25 2013 +0100 css.logging.SimpleLogRing.create() calls initialize w/ empty Arguments Change-Id: Iffcab3831b40ce309aa20fdb825328ebb4dd1064 diff --git a/comphelper/source/misc/documentiologring.cxx b/comphelper/source/misc/documentiologring.cxx index 5b94364..a2e9de1 100644 --- a/comphelper/source/misc/documentiologring.cxx +++ b/comphelper/source/misc/documentiologring.cxx @@ -123,14 +123,17 @@ void SAL_CALL OSimpleLogRing::initialize( const uno::Sequence< uno::Any >& aArgu if ( !m_refCount ) throw uno::RuntimeException(); // the object must be refcounted already! - sal_Int32 nLen = 0; - if ( aArguments.getLength() == 1 && ( aArguments[0] >>= nLen ) && nLen ) - m_aMessages.realloc( nLen ); - else - throw lang::IllegalArgumentException( - OUString( "Nonnull size is expected as the first argument!" ), + if (aArguments.hasElements()) + { + sal_Int32 nLen = 0; + if ( aArguments.getLength() == 1 && ( aArguments[0] >>= nLen ) && nLen ) + m_aMessages.realloc( nLen ); + else + throw lang::IllegalArgumentException( + "Nonnull size is expected as the first argument!", uno::Reference< uno::XInterface >(), 0 ); + } m_bInitialized = sal_True; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits