summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-03 08:32:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-03 15:58:24 +0100
commitade84ba664b12766b3626dc04277a889ce5bd596 (patch)
treeffdaa81547ba4d1bbd4dbae7a9355ec6e28c9c17 /sc/source
parentcb6511354b500d1b1bd8ff140fdf0ea106b174d4 (diff)
coverity#1233511 Uncaught exception
Change-Id: I662bb136128c5e8f22f7d57d38f21a3437d36819
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/vba/vbaaxes.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/ui/vba/vbaaxes.cxx b/sc/source/ui/vba/vbaaxes.cxx
index 8427e143ce51..1cd88511f60a 100644
--- a/sc/source/ui/vba/vbaaxes.cxx
+++ b/sc/source/ui/vba/vbaaxes.cxx
@@ -120,8 +120,18 @@ public:
virtual ::sal_Int32 SAL_CALL getCount() throw (uno::RuntimeException, std::exception) SAL_OVERRIDE { return mCoordinates.size(); }
virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, ::uno::RuntimeException, std::exception) SAL_OVERRIDE
{
+ try
+ {
AxesCoordinate dIndexes = mCoordinates[ Index ];
return uno::makeAny( ScVbaAxes::createAxis( mxChart, mxContext, dIndexes.second, dIndexes.first ) );
+ }
+ catch (const css::script::BasicErrorException& e)
+ {
+ throw css::lang::WrappedTargetException(
+ "Error Getting Index!",
+ static_cast < OWeakObject * > ( this ),
+ makeAny( e ) );
+ }
}
// XElementAccess
virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException, std::exception) SAL_OVERRIDE