From 45c98588d0f67ee306b89e8666e53d05a9834e09 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 24 Mar 2014 11:37:37 -0400 Subject: Crash prevention by checking for NULL. Change-Id: I10a0c2dcee123b884c563c3e6f83e218747e792a --- chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx index 498bd26170c7..13a7560724f5 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx +++ b/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx @@ -63,7 +63,9 @@ public: { try { - ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xChartTypePropertySet( aChartTypes[nN], ::com::sun::star::uno::UNO_QUERY ); + uno::Reference xChartTypePropertySet(aChartTypes[nN], uno::UNO_QUERY); + if (!xChartTypePropertySet.is()) + continue; Any aSingleValue = this->convertInnerToOuterValue( xChartTypePropertySet->getPropertyValue(m_aOwnInnerName) ); PROPERTYTYPE aCurValue = PROPERTYTYPE(); -- cgit v1.2.3