diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-09-04 09:56:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-04 10:48:32 +0100 |
commit | 0ba251fb2b176df7712b9e7c5ef67ff709c022e0 (patch) | |
tree | 2c1774a6f16d1e1b73f9974667dece482561e150 /svx | |
parent | d47678c990681d0cfc7f2c843bb9aedaeb08511a (diff) |
coverity#983930 Uncaught exception
Change-Id: I812916ddd10db6272ca0aeb5409eee8ff163d3fc
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unoshap4.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx index 4d7f29848733..3fac4a0d2f7b 100644 --- a/svx/source/unodraw/unoshap4.cxx +++ b/svx/source/unodraw/unoshap4.cxx @@ -22,6 +22,7 @@ #include <com/sun/star/embed/NoVisualAreaSizeException.hpp> #include <com/sun/star/embed/Aspects.hpp> #include <com/sun/star/task/XInteractionHandler.hpp> +#include <com/sun/star/ucb/CommandFailedException.hpp> #include <vcl/virdev.hxx> #include <svx/svdoole2.hxx> @@ -947,10 +948,18 @@ bool SvxMediaShape::getPropertyValueImpl( const OUString& rName, const SfxItemPr catch (const css::ucb::ContentCreationException& e) { throw css::lang::WrappedTargetException( - "Error Getting InputStream!", + "ContentCreationException Getting InputStream!", static_cast < OWeakObject * > ( this ), makeAny( e ) ); } + catch (const css::ucb::CommandFailedException& e) + { + throw css::lang::WrappedTargetException( + "CommandFailedException Getting InputStream!", + static_cast < OWeakObject * > ( this ), + makeAny( e ) ); + } + break; case OWN_ATTR_MEDIA_TEMPFILEURL: |