diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-24 10:40:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-24 16:43:06 +0200 |
commit | cb115be987c4aa3dc2daed02dcd1b419e8d6a61e (patch) | |
tree | 86c1972466c4e0d0f80850612ba1ccecbfc1a855 /sw | |
parent | 4cbe3e2fca5752296b67dfb796155c62ed99396f (diff) |
cid#1616924 Dereference after null check
Change-Id: Ia326d99b11d18f7c561c988f0299feb2ebf84b6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172346
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/writerfilter/dmapper/DomainMapperTableManager.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/writerfilter/dmapper/DomainMapperTableManager.cxx b/sw/source/writerfilter/dmapper/DomainMapperTableManager.cxx index 72e37c4da860..f8d3a762871a 100644 --- a/sw/source/writerfilter/dmapper/DomainMapperTableManager.cxx +++ b/sw/source/writerfilter/dmapper/DomainMapperTableManager.cxx @@ -240,9 +240,12 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm) break; case NS_ooxml::LN_CT_TblPrBase_tblStyle: //table style name { - TablePropertyMapPtr pPropMap( new TablePropertyMap ); - pPropMap->Insert( META_PROP_TABLE_STYLE_NAME, uno::Any( pValue->getString() )); - insertTableProps(pPropMap); + if (pValue) + { + TablePropertyMapPtr pPropMap( new TablePropertyMap ); + pPropMap->Insert( META_PROP_TABLE_STYLE_NAME, uno::Any( pValue->getString() )); + insertTableProps(pPropMap); + } } break; case NS_ooxml::LN_CT_TblGridBase_gridCol: |