sw/source/core/unocore/unostyle.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 05cd178535619d7cfecc15c059a92c2006f9282d
Author: Jakub Trzebiatowski <ubap....@gmail.com>
Date:   Tue Jun 7 23:13:44 2016 +0200

    sw SwXTextCellStyle fix possible nullptr dereference
    
    Change-Id: Id6303afdbd294066332c1806699a47086331e9ef
    Reviewed-on: https://gerrit.libreoffice.org/26038
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Jakub Trzebiatowski <ubap....@gmail.com>
    Reviewed-by: jan iversen <j...@documentfoundation.org>

diff --git a/sw/source/core/unocore/unostyle.cxx 
b/sw/source/core/unocore/unostyle.cxx
index 7f73a61..b87dfe3 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -4468,6 +4468,9 @@ css::uno::Reference<css::style::XStyle> 
SwXTextCellStyle::CreateXTextCellStyle(S
             throw;
 
         SwTableAutoFormat* pFormat = 
pDocShell->GetDoc()->GetTableStyles().FindAutoFormat(sParentName);
+        if (!pFormat)
+            throw;
+
         sal_uInt32 nBoxIndex = rTableTemplateMap[nTemplateIndex];
         pBoxFormat = &pFormat->GetBoxFormat(nBoxIndex);
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to