From c2a4061e3e3b45679a03ef3295f9f824cb430d40 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 26 Mar 2018 13:44:31 +0100 Subject: forcepoint #34 survive missing autostyles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I742816297659d614e836a8d5e8965b1c55154719 Reviewed-on: https://gerrit.libreoffice.org/51890 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sc/source/filter/xml/xmlcelli.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index 4d393f9f1e61..d52d31e35158 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -360,6 +360,8 @@ void ScXMLTableRowCellContext::PushFormat(sal_Int32 nBegin, sal_Int32 nEnd, cons sal_Int32 nEntryCount = xMapper->GetEntryCount(); SvXMLStylesContext* pAutoStyles = GetImport().GetAutoStyles(); + if (!pAutoStyles) + return; // Style name for text span corresponds with the name of an automatic style. const XMLPropStyleContext* pStyle = dynamic_cast( -- cgit