diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-24 11:37:37 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-25 22:50:49 -0400 |
commit | 45c98588d0f67ee306b89e8666e53d05a9834e09 (patch) | |
tree | 45ca465a1cff2c9b122466ed3dc8da303eed9d0d /chart2/source/controller | |
parent | be1152e0cc8286eaff05274c71843c3457948393 (diff) |
Crash prevention by checking for NULL.
Change-Id: I10a0c2dcee123b884c563c3e6f83e218747e792a
Diffstat (limited to 'chart2/source/controller')
-rw-r--r-- | chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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<beans::XPropertySet> xChartTypePropertySet(aChartTypes[nN], uno::UNO_QUERY); + if (!xChartTypePropertySet.is()) + continue; Any aSingleValue = this->convertInnerToOuterValue( xChartTypePropertySet->getPropertyValue(m_aOwnInnerName) ); PROPERTYTYPE aCurValue = PROPERTYTYPE(); |