diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-04-02 15:16:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-04-02 15:22:20 +0200 |
commit | 67d724e46579462d906477f52cf7919338bab834 (patch) | |
tree | 60fd94ff0581e186cd8c2a5610626c67faed8c84 /canvas/source/factory | |
parent | c42bdb023725016af22d7cee8cf81c8975234d94 (diff) |
Adapt code to IllegalArgumentException being a RuntimeException
...since 31170413ae3786bf44564e813d7291354e939a77 "API CHANGE:
com.sun.star.lang.IllegalArgumentException." In this case, with an
--enable-dbgutil build,
soffice --headless 'AP - ISS de La Pampa - SGTyDD - REQ 06.docx'
(as attached to fdo#61305 "improper display" as
<https://bugs.freedesktop.org/attachment.cgi?id=75354>) would lead to "terminate
called after throwing an instance of
'com::sun::star::lang::IllegalArgumentException'" when the erroneously leaked
IllegalArgumentException was unexpected in SvxShape::GetBitmap
(svx/source/unodraw/unoshape.cxx).
Change-Id: I849b5cf496cc7dff7b3c17d2d4d54f0194553e27
Diffstat (limited to 'canvas/source/factory')
-rw-r--r-- | canvas/source/factory/cf_service.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/canvas/source/factory/cf_service.cxx b/canvas/source/factory/cf_service.cxx index 54459ec881af..89ef16f16172 100644 --- a/canvas/source/factory/cf_service.cxx +++ b/canvas/source/factory/cf_service.cxx @@ -25,6 +25,7 @@ #include <cppuhelper/implbase3.hxx> #include <com/sun/star/uno/XComponentContext.hpp> +#include <com/sun/star/lang/IllegalArgumentException.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XSingleComponentFactory.hpp> #include <com/sun/star/configuration/theDefaultProvider.hpp> @@ -277,6 +278,10 @@ Reference<XInterface> CanvasFactory::use( return m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext( serviceName, args, xContext); } + catch (css::lang::IllegalArgumentException &) + { + return Reference<XInterface>(); + } catch (const RuntimeException &) { throw; |