diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-04 00:05:33 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-04 17:10:51 +0100 |
commit | 6ba126ce26c83a0e6766e8dc8c38202d2a2ab238 (patch) | |
tree | 9d14acab56f859c2a8ae0da64d71e615366a5d99 | |
parent | cbeeae7f81555409cafb677a2292b8be40c449e6 (diff) |
don't crash for empty input data in charts, fdo#46885
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 90d1b07977a9..034d261e39e2 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -1560,7 +1560,7 @@ ScChart2DataProvider::createDataSource( } Reference< chart2::data::XLabeledDataSequence > xChartSeries = lcl_createLabeledDataSequenceFromTokens( pValueTokens, pLabelTokens, m_pDocument, this, m_bIncludeHiddenCells ); //ownership of pointers is transfered! - if ( xChartSeries.is() && xChartSeries->getValues()->getData().getLength() ) + if ( xChartSeries.is() && xChartSeries->getValues().is() && xChartSeries->getValues()->getData().getLength() ) { aSeqs.push_back( xChartSeries ); } |