diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-08 15:23:04 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-06-09 12:28:37 +0200 |
commit | 037bc69698885c63ee9b3ccacd7e396ca1647088 (patch) | |
tree | 2dd90b13e4a8786fd92c5537079f2ee21b943e47 | |
parent | 36f21d78e26183066851dd58e5bc8ea6e991161f (diff) |
check for empty model like ObjectIdentifier::getObjectPropertySetcp-23.05.0-4
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/+/152756
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-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 bbaf95c56e7d..ae6480b8b40b 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()) |