summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-10-17 12:21:56 +0000
committerRüdiger Timm <rt@openoffice.org>2005-10-17 12:21:56 +0000
commit29e6bec904092f10273497ccbe613d03c3d7b14c (patch)
treec3ff6609072669fa90149cc69b75a677e4313b42
parent9e3089be1527e0e015c4f04f9d80b7471b55dea0 (diff)
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
-rw-r--r--stoc/source/tdmanager/tdmgr.cxx8
1 files 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 );
}