diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-08 15:23:04 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-06-12 12:26:25 +0200 |
commit | 4142a5aef0d8bfc7ae7506f19873785139694612 (patch) | |
tree | c0d49a84c881eb981cdfacb13cafe97ee57fe793 /chart2 | |
parent | pdfium: better suport for annotations and some fixes (diff) | |
download | core-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.cxx | 3 |
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()) |