sc/source/filter/oox/PivotTableFormat.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1dc92b9e9951ef118d2d823d54f9a022c2e41a27 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun Apr 14 17:38:05 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun Apr 14 20:29:50 2024 +0200 ofz#68019 Null-dereference READ Change-Id: Ie0c9c5a74e6ae87a0bd4c35320a687458d1d9902 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166074 Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sc/source/filter/oox/PivotTableFormat.cxx b/sc/source/filter/oox/PivotTableFormat.cxx index 2fc0cfa78371..870a6c99fad9 100644 --- a/sc/source/filter/oox/PivotTableFormat.cxx +++ b/sc/source/filter/oox/PivotTableFormat.cxx @@ -105,7 +105,7 @@ void PivotTableFormat::finalizeImport() aFormat.pPattern = pPattern; for (auto& rReference : maReferences) { - if (rReference->mnField) + if (rReference->mnField && !rReference->maFieldItemsIndices.empty()) { aFormat.aSelections.push_back( sc::Selection{ .bSelected = rReference->mbSelected,