[Libreoffice-commits] core.git: sw/source
Jakub Trzebiatowski
ubap.dev at gmail.com
Wed Jun 8 06:01:15 UTC 2016
sw/source/core/unocore/unostyle.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 05cd178535619d7cfecc15c059a92c2006f9282d
Author: Jakub Trzebiatowski <ubap.dev at 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 <ci at libreoffice.org>
Reviewed-by: Jakub Trzebiatowski <ubap.dev at gmail.com>
Reviewed-by: jan iversen <jani at 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);
}
More information about the Libreoffice-commits
mailing list