summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-03-30 21:22:16 +0100
committerAndras Timar <andras.timar@collabora.com>2022-04-06 14:00:12 +0200
commit7fc88f7c1991ee082a08af2589723f40a6da9b43 (patch)
tree2e80feace7fd5a4c3d5b4b5a392d340e95dd9a70 /extensions
parentf106f1812c9d2563064d604f392ece106fbeea2d (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/+/132190 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index 20a21ad8ae72..30568b56b7d8 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -243,6 +243,10 @@ namespace pcr
{
const PropertyId nPropId( impl_getPropertyId_throwUnknownProperty( _rPropertyName ) );
+ // tdf#117159 crash with chart in database report
+ if (!m_xComponent)
+ return Any();
+
Any aPropertyValue( m_xComponent->getPropertyValue( _rPropertyName ) );
Reference< resource::XStringResourceResolver > xStringResourceResolver