diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index 2f736785b503..8af02b0c1762 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -1953,6 +1953,8 @@ void VDataSeriesGroup::calculateYMinAndMaxForCategoryRange( if(nStartCategoryIndex<0) nStartCategoryIndex=0; const sal_Int32 nPointCount = getPointCount();//necessary to create m_aListOfCachedYValues + if(nPointCount <= 0) + return; if (nEndCategoryIndex >= nPointCount) nEndCategoryIndex = nPointCount - 1; if(nEndCategoryIndex<0)