summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-14 15:48:12 +0100
committerAndras Timar <andras.timar@collabora.com>2018-08-21 10:53:37 +0200
commit46a377f8e33e4a12bce72f6df6737a0445174ecf (patch)
treee1e37d9d0041c90beb4c2fe6d363bafedef839c2 /chart2
parente56cb5f08694fc7cc7cc8c85c843085ce1b83631 (diff)
Resolves: tdf#117069 crash double clicking in certain chart
Change-Id: I4506a3517eff7f73cf793195e9d605d450b84fda Reviewed-on: https://gerrit.libreoffice.org/58997 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Jenkins (cherry picked from commit d12a200e69d4bedb4228c7632ec648e4fdc21fc2)
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index a505335cfa9a..702c84a2f53c 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -265,6 +265,9 @@ css::uno::Reference<css::chart2::XChartType> getChartType(
Reference< chart2::XCoordinateSystemContainer > xCooSysContainer( xDiagram, uno::UNO_QUERY_THROW );
Sequence< Reference< chart2::XCoordinateSystem > > xCooSysSequence( xCooSysContainer->getCoordinateSystems());
+ if (!xCooSysSequence.getLength()) {
+ return css::uno::Reference<css::chart2::XChartType>();
+ }
Reference< chart2::XChartTypeContainer > xChartTypeContainer( xCooSysSequence[0], uno::UNO_QUERY_THROW );