summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-06-08 15:23:04 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2023-06-12 12:26:25 +0200
commit4142a5aef0d8bfc7ae7506f19873785139694612 (patch)
treec0d49a84c881eb981cdfacb13cafe97ee57fe793 /chart2
parentpdfium: better suport for annotations and some fixes (diff)
downloadcore-4142a5aef0d8bfc7ae7506f19873785139694612.tar.gz
core-4142a5aef0d8bfc7ae7506f19873785139694612.zip
check for empty model like ObjectIdentifier::getObjectPropertySet
a speculative fix for: https://crashreport.libreoffice.org/stats/crash_details/5b3c8597-9ffa-49b8-8cc2-132e69456249 Change-Id: I4f45cf4c7ed51c814d4cb01b8f55709586d7a981 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152755 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/sidebar/ChartColorWrapper.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/chart2/source/controller/sidebar/ChartColorWrapper.cxx b/chart2/source/controller/sidebar/ChartColorWrapper.cxx
index e1011a684787..aee8483cadf4 100644
--- a/chart2/source/controller/sidebar/ChartColorWrapper.cxx
+++ b/chart2/source/controller/sidebar/ChartColorWrapper.cxx
@@ -39,6 +39,9 @@ namespace {
OUString getCID(const css::uno::Reference<css::frame::XModel>& xModel)
{
+ if (!xModel.is())
+ return OUString();
+
css::uno::Reference<css::frame::XController> xController(xModel->getCurrentController());
css::uno::Reference<css::view::XSelectionSupplier> xSelectionSupplier(xController, css::uno::UNO_QUERY);
if (!xSelectionSupplier.is())