summaryrefslogtreecommitdiff
path: root/cppuhelper/qa
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-06-27 12:21:06 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-06-27 12:21:06 +0000
commit62c7e727a7b58991aa42019ad8f51418d7bc25b5 (patch)
treedccd44ca890aa2b59845135f6a34022fec9309e9 /cppuhelper/qa
parent585450b2c39ffbe040e45aced480fb911da02e50 (diff)
INTEGRATION: CWS sb70 (1.4.24); FILE MERGED
2007/06/05 08:17:24 sb 1.4.24.1: #i68624# Do not crash on adding NULL listeners.
Diffstat (limited to 'cppuhelper/qa')
-rw-r--r--cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx b/cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx
index e43469047df2..22f3ebbcf9b4 100644
--- a/cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx
+++ b/cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: test_propertysetmixin.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: hr $ $Date: 2007-01-03 11:37:08 $
+ * last change: $Author: hr $ $Date: 2007-06-27 13:21:06 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -381,6 +381,16 @@ void Test::testEmpty2(
empty2p->addPropertyChangeListener(rtl::OUString(), boundListener2.get());
empty2p->addVetoableChangeListener(rtl::OUString(), vetoListener1.get());
empty2p->addVetoableChangeListener(rtl::OUString(), vetoListener2.get());
+ try {
+ empty2p->addPropertyChangeListener(
+ rtl::OUString(),
+ css::uno::Reference< css::beans::XPropertyChangeListener >());
+ } catch (css::uno::RuntimeException &) {}
+ try {
+ empty2p->addVetoableChangeListener(
+ rtl::OUString(),
+ css::uno::Reference< css::beans::XVetoableChangeListener >());
+ } catch (css::uno::RuntimeException &) {}
CPPUNIT_ASSERT_EQUAL(3, boundListener1->count());
CPPUNIT_ASSERT_EQUAL(1, boundListener2->count());
CPPUNIT_ASSERT_EQUAL(3, vetoListener1->count());