diff options
-rw-r--r-- | framework/source/services/taskcreatorsrv.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/framework/source/services/taskcreatorsrv.cxx b/framework/source/services/taskcreatorsrv.cxx index d66eff4fcb09..13c5a5679bba 100644 --- a/framework/source/services/taskcreatorsrv.cxx +++ b/framework/source/services/taskcreatorsrv.cxx @@ -250,10 +250,7 @@ css::uno::Reference< css::awt::XWindow > TaskCreatorService::implts_createContai // create a new blank container window and get access to parent container to append new created task. css::uno::Reference< css::awt::XWindowPeer > xPeer = xToolkit->createWindow( aDescriptor ); - css::uno::Reference< css::awt::XWindow > xWindow ( xPeer, css::uno::UNO_QUERY ); - if ( ! xWindow.is()) - throw css::uno::Exception("TaskCreator service was not able to create suitable frame window.", - static_cast< ::cppu::OWeakObject* >(this)); + css::uno::Reference< css::awt::XWindow > xWindow ( xPeer, css::uno::UNO_QUERY_THROW ); sal_Int32 nBackground = 0xffffffff; |