framework/source/services/backingcomp.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 228a3f8b9f279e80917968d9780e822a1d684ada Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Jul 9 16:32:47 2012 +0200 Handle attachFrame on disposed object gracefully ...this can apparently happen during the complex.sfx2.DocumentEvetns JUnit test (which would otherwise sometimes fail with an uncaught RuntimeException). Change-Id: I4c96a3bc6bf08e92ec3ec82d76812a35226494fb diff --git a/framework/source/services/backingcomp.cxx b/framework/source/services/backingcomp.cxx index af64d81..451af43 100644 --- a/framework/source/services/backingcomp.cxx +++ b/framework/source/services/backingcomp.cxx @@ -468,9 +468,7 @@ void SAL_CALL BackingComp::attachFrame( /*IN*/ const css::uno::Reference< css::f static_cast< ::cppu::OWeakObject* >(this)); if (!m_xWindow.is()) - throw css::uno::RuntimeException( - ::rtl::OUString("instance seams to be not or wrong initialized"), - static_cast< ::cppu::OWeakObject* >(this)); + return; // disposed // safe the frame reference m_xFrame = xFrame; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits