diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-30 21:22:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-31 11:34:04 +0200 |
commit | 6c0dca63cd93c393b12bdbd2ce777c275a9279ff (patch) | |
tree | cd5e8a0bca3fb4f6e52a81d9095081ec742db8b5 /reportdesign | |
parent | c4268efef25129b162884312b15527f1e5c3bcb0 (diff) |
Resolves: tdf#117159 don't crash with chart selected in database report edit
Change-Id: I770008bf0a775c108019c2005b6ec73ee9702a19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132337
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/inspection/DataProviderHandler.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/reportdesign/source/ui/inspection/DataProviderHandler.cxx b/reportdesign/source/ui/inspection/DataProviderHandler.cxx index a6c1214704a7..389074a903c5 100644 --- a/reportdesign/source/ui/inspection/DataProviderHandler.cxx +++ b/reportdesign/source/ui/inspection/DataProviderHandler.cxx @@ -182,7 +182,8 @@ uno::Any SAL_CALL DataProviderHandler::getPropertyValue(const OUString & Propert //} break; case PROPERTY_ID_PREVIEW_COUNT: - aPropertyValue <<= m_xDataProvider->getRowLimit(); + if (m_xDataProvider) // tdf#117159 crash with chart in database report otherwise + aPropertyValue <<= m_xDataProvider->getRowLimit(); break; default: aPropertyValue = m_xFormComponentHandler->getPropertyValue( PropertyName ); |