diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-14 15:48:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-14 21:54:18 +0200 |
commit | 704133f7cb76b29a86d97d776b594c5ebf9a1123 (patch) | |
tree | 7cd179d89e5c2ec14e81ce211dbef87beb090496 | |
parent | 905b46799d2b94173ec0275e26ad25f4ab20f4f8 (diff) |
Resolves: tdf#117069 crash double clicking in certain chart
Change-Id: I4506a3517eff7f73cf793195e9d605d450b84fda
Reviewed-on: https://gerrit.libreoffice.org/58996
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Jenkins
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index 3fc25dd822a7..5e288da2a3bd 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -266,6 +266,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 ); |