[Libreoffice-commits] .: writerfilter/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Fri Nov 18 01:58:54 PST 2011


 writerfilter/source/dmapper/DomainMapper_Impl.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit a8cae44d7c93f0a2d8f0f4c4334f5ad757063f05
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Fri Nov 18 10:59:10 2011 +0100

    Related: i#56948 fix crash during RTF import of FILLIN field

diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index a7f047c..e39eec4 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -2562,8 +2562,9 @@ void DomainMapper_Impl::CloseFieldCommand()
                     case FIELD_FILLIN       :
                     {
                         sal_Int32 nIndex = 0;
-                        xFieldProperties->setPropertyValue(
-                                rPropNameSupplier.GetName(PROP_HINT), uno::makeAny( pContext->GetCommand().getToken( 1, '\"', nIndex)));
+                        if (xFieldProperties.is())
+                            xFieldProperties->setPropertyValue(
+                                    rPropNameSupplier.GetName(PROP_HINT), uno::makeAny( pContext->GetCommand().getToken( 1, '\"', nIndex)));
                     }
                     break;
                     case FIELD_FILENAME:


More information about the Libreoffice-commits mailing list