From 0252a22c43ec6d676c7d9a7ded0ec7064dede7c1 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Tue, 30 Apr 2013 11:20:01 +0200 Subject: Fix fdo#64062 - can't assume para styles to be there. Change-Id: I5da53ff44fdf00ec6c0fdf1a722f806971b6683a Reviewed-on: https://gerrit.libreoffice.org/3694 Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist --- xmloff/source/text/txtimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index b48225aac68d..3abafb5fd3f7 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -1803,7 +1803,7 @@ OUString XMLTextImportHelper::SetStyleAndAttrs( style, if it has no direct list style property and (if exists) the automatic paragraph style has also no direct list style set. */ - if (m_pImpl->m_xParaStyles->hasByName(sStyleName)) + if (m_pImpl->m_xParaStyles.is() && m_pImpl->m_xParaStyles->hasByName(sStyleName)) { bool bOutlineStyleCandidate( false ); -- cgit v1.2.3