From 62c7e727a7b58991aa42019ad8f51418d7bc25b5 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Wed, 27 Jun 2007 12:21:06 +0000 Subject: 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. --- cppuhelper/qa/propertysetmixin/test_propertysetmixin.cxx | 14 ++++++++++++-- 1 file 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()); -- cgit