summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-10 09:59:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-10 10:44:23 +0000
commitdb99f38e0ae7e7269c15e74e846215ffb90ce9b3 (patch)
tree4f0c168d205a29698b64d62a8ef640dddf0c9009 /sw
parent6c7c6e8c93fedbd99d183702eeb89a346fc3da32 (diff)
coverity#1000853 Uncaught exception
Change-Id: Id55768822a6a932dace1e30cb03175880ba3ca6a
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unoobj.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index 6a7b2f251793..9d7ddef93c66 100644
--- a/sw/source/core/unocore/unoobj.cxx
+++ b/sw/source/core/unocore/unoobj.cxx
@@ -19,6 +19,7 @@
#include <com/sun/star/table/TableSortField.hpp>
#include <comphelper/string.hxx>
+#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <osl/endian.h>
#include <rtl/ustrbuf.hxx>
@@ -2336,7 +2337,17 @@ void SAL_CALL SwXTextCursor::setPropertyValues(
aPropertyValues[ i ].Name = aPropertyNames[ i ];
aPropertyValues[ i ].Value = aValues[ i ];
}
- SwUnoCursorHelper::SetPropertyValues( rUnoCursor, m_pImpl->m_rPropSet, aPropertyValues );
+ try
+ {
+ SwUnoCursorHelper::SetPropertyValues( rUnoCursor, m_pImpl->m_rPropSet, aPropertyValues );
+ }
+ catch (const css::beans::UnknownPropertyException& e)
+ {
+ uno::Any a(cppu::getCaughtException());
+ throw lang::WrappedTargetException(
+ "wrapped Exception " + e.Message,
+ uno::Reference<uno::XInterface>(), a);
+ }
}
uno::Sequence< uno::Any > SAL_CALL