[Libreoffice-commits] .: framework/source
Stephan Bergmann
sbergmann at kemper.freedesktop.org
Mon Jul 9 07:36:30 PDT 2012
framework/source/services/backingcomp.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 228a3f8b9f279e80917968d9780e822a1d684ada
Author: Stephan Bergmann <sbergman at 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;
More information about the Libreoffice-commits
mailing list