Kaydet (Commit) c76b4dd2 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1296216 Uncaught exception

Change-Id: Id34a655c554e78476e3bd83c87de3cbe1b557980
üst c675a2d6
......@@ -55,6 +55,8 @@
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/drawing/LineJoint.hpp>
#include <com/sun/star/drawing/LineStyle.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <cppuhelper/exc_hlp.hxx>
using namespace ::com::sun::star;
using namespace ::chart::wrapper;
......@@ -640,6 +642,8 @@ beans::PropertyState SAL_CALL DataSeriesPointWrapper::getPropertyState( const OU
throw (beans::UnknownPropertyException, uno::RuntimeException, std::exception)
{
beans::PropertyState aState( beans::PropertyState_DIRECT_VALUE );
try
{
if (rPropertyName == "SymbolBitmapURL")
{
uno::Any aAny = WrappedPropertySet::getPropertyValue("SymbolType");
......@@ -673,6 +677,29 @@ beans::PropertyState SAL_CALL DataSeriesPointWrapper::getPropertyState( const OU
if( aDefault==aValue )
aState = beans::PropertyState_DEFAULT_VALUE;
}
}
catch( const beans::UnknownPropertyException& )
{
throw;
}
catch( const uno::RuntimeException& )
{
throw;
}
catch( const lang::WrappedTargetException& e )
{
css::uno::Any a(e.TargetException);
throw css::lang::WrappedTargetRuntimeException(
"wrapped Exception " + e.Message,
css::uno::Reference<css::uno::XInterface>(), a);
}
catch( const uno::Exception& e )
{
css::uno::Any a(cppu::getCaughtException());
throw css::lang::WrappedTargetRuntimeException(
"wrapped Exception " + e.Message,
css::uno::Reference<css::uno::XInterface>(), a);
}
return aState;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment