diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-07-09 16:32:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-07-09 16:35:06 +0200 |
commit | 228a3f8b9f279e80917968d9780e822a1d684ada (patch) | |
tree | b24ce9ff32e69172e1751fffd4b8aede42ff2dbf /framework | |
parent | ebc60c3297ae464898f6135e4cc5a652fb53b935 (diff) |
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
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/services/backingcomp.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/source/services/backingcomp.cxx b/framework/source/services/backingcomp.cxx index af64d81dc61d..451af43a8640 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; |