diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-03-29 11:25:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-03-29 12:32:27 +0000 |
commit | 06b34d9f4b7967e87cd53e0effd98bfacfee2bb9 (patch) | |
tree | 996ef1ad0efb69d59715acaff8c33bd43edab80d /chart2/source/model/main | |
parent | a2e78d06df22e99f2dc82ee3245ddc4c5de56acf (diff) |
crashtesting: Null-deref on export of forum-mso-en4-274729.xls to ods
and others, probably since:
commit f02ec0d8489404966596cb0e949bf969e8e66fa2
Date: Wed Mar 22 08:50:15 2023 +0200
move hasUnhiddenData inside chart2::DataSeries
Change-Id: Icf59439f00a40ef036decaa36f3d5af68787c864
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149688
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2/source/model/main')
-rw-r--r-- | chart2/source/model/main/DataSeries.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/source/model/main/DataSeries.cxx b/chart2/source/model/main/DataSeries.cxx index 9f863f888dd0..9008ab8e664b 100644 --- a/chart2/source/model/main/DataSeries.cxx +++ b/chart2/source/model/main/DataSeries.cxx @@ -686,6 +686,8 @@ OUString DataSeries::getLabelForRole( const OUString & rLabelSequenceRole ) static bool lcl_SequenceHasUnhiddenData( const uno::Reference< chart2::data::XDataSequence >& xDataSequence ) { + if (!xDataSequence.is()) + return false; uno::Reference< beans::XPropertySet > xProp( xDataSequence, uno::UNO_QUERY ); if( xProp.is() ) { |