summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-12 10:34:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-12 16:00:44 +0000
commit92e7bc1769c0cf0a0bca4e68a17cd52211e07414 (patch)
tree873eb1f7ae0822b4e000221dd8063cddd1b2c6a8
parent6691816fe86ef7d193fee3632c2d56debfff3fa9 (diff)
crashtesting: null deref see on loading forum-mso-en4-531817.xlsx
Change-Id: I8fb92edc32cabecd0f1ff5090f1b102e090aa840 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143983 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/filter/oox/pivottablebuffer.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/oox/pivottablebuffer.cxx b/sc/source/filter/oox/pivottablebuffer.cxx
index 3425c4a6c0c5..d57c17571282 100644
--- a/sc/source/filter/oox/pivottablebuffer.cxx
+++ b/sc/source/filter/oox/pivottablebuffer.cxx
@@ -755,8 +755,9 @@ Reference< XDataPilotField > PivotTableField::convertRowColPageField( sal_Int32
{
ScDPSaveData* pSaveData = pDPObj->GetSaveData();
ScDPSaveDimension* pDim = pSaveData->GetDimensionByName(pCacheField->getName());
+ SAL_WARN_IF(!pDim, "sc.filter", "PivotTableField::convertRowColPageField - no Dimension found for: " << pCacheField->getName());
- try
+ if (pDim) try
{
for( const auto& rItem : maItems )
{