From 29e6bec904092f10273497ccbe613d03c3d7b14c Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Mon, 17 Oct 2005 12:21:56 +0000 Subject: INTEGRATION: CWS jscpp1 (1.18.40); FILE MERGED 2005/08/26 14:10:14 jsc 1.18.40.1: #i53830# check if inserted TypeDescriptionProvider is valid --- stoc/source/tdmanager/tdmgr.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stoc/source/tdmanager/tdmgr.cxx b/stoc/source/tdmanager/tdmgr.cxx index 7b21672ad49c..e77ab6eb00ea 100644 --- a/stoc/source/tdmanager/tdmgr.cxx +++ b/stoc/source/tdmanager/tdmgr.cxx @@ -4,9 +4,9 @@ * * $RCSfile: tdmgr.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: rt $ $Date: 2005-09-08 08:13:17 $ + * last change: $Author: rt $ $Date: 2005-10-17 13:21:56 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -443,10 +443,10 @@ void SAL_CALL ManagerImpl::insert( const Any & rElement ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException) { Reference< XHierarchicalNameAccess > xElem; - if (! (rElement >>= xElem)) + if (! (rElement >>= xElem) || !xElem.is()) { throw IllegalArgumentException( - OUString( RTL_CONSTASCII_USTRINGPARAM("no type description provider given!") ), + OUString( RTL_CONSTASCII_USTRINGPARAM("no valid type description provider given!") ), (XWeak *)(OWeakObject *)this, 0 ); } -- cgit