[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sw/qa xmloff/source

Caolán McNamara caolanm at redhat.com
Thu Aug 31 13:55:05 UTC 2017


 sw/qa/core/data/odt/pass/tdf112123.odt |binary
 xmloff/source/text/txtimp.cxx          |    3 +++
 2 files changed, 3 insertions(+)

New commits:
commit 3576aa7a7328b04faf222451d73681db7c1d9c54
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Aug 31 13:16:25 2017 +0100

    Resolves: tdf#112123 check m_xAutoStyles like in similar methods
    
    Change-Id: I099da789a0e64fd862d09bb462ccb699e1dc8b9f
    Reviewed-on: https://gerrit.libreoffice.org/41753
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/sw/qa/core/data/odt/pass/tdf112123.odt b/sw/qa/core/data/odt/pass/tdf112123.odt
new file mode 100644
index 000000000000..c5d2195b9468
Binary files /dev/null and b/sw/qa/core/data/odt/pass/tdf112123.odt differ
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx
index 4d1b1333d9d2..ddb51718bf9f 100644
--- a/xmloff/source/text/txtimp.cxx
+++ b/xmloff/source/text/txtimp.cxx
@@ -2430,6 +2430,9 @@ SvXMLImportContext *XMLTextImportHelper::CreateTableChildContext(
 sal_Int32 XMLTextImportHelper::GetDataStyleKey(const OUString& sStyleName,
                                                bool* pIsSystemLanguage )
 {
+    if (!m_xImpl->m_xAutoStyles.is())
+        return -1;
+
     const SvXMLStyleContext* pStyle =
         static_cast<SvXMLStylesContext *>(m_xImpl->m_xAutoStyles.get())->
                   FindStyleChildContext( XML_STYLE_FAMILY_DATA_STYLE,


More information about the Libreoffice-commits mailing list