sc/source/ui/unoobj/PivotTableDataProvider.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit f634834434414c8b8d7ad28063bed08b683765a2 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Sep 15 10:10:20 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Sep 15 15:30:19 2022 +0200 cid#1500581 silence Explicit null dereferenced presumably this must hold Change-Id: I2c218c6a63d5213f5abc1b671fa9f035bc69ed7a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139996 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/ui/unoobj/PivotTableDataProvider.cxx b/sc/source/ui/unoobj/PivotTableDataProvider.cxx index 285444e11507..10d62b9ffc37 100644 --- a/sc/source/ui/unoobj/PivotTableDataProvider.cxx +++ b/sc/source/ui/unoobj/PivotTableDataProvider.cxx @@ -452,6 +452,8 @@ void PivotTableDataProvider::collectPivotTableData() if (bFound) { + assert(pItem && "bHasContinueFlag must be false on this or some preceding element"); + if (i >= m_aCategoriesRowOrientation.size()) m_aCategoriesRowOrientation.resize(i + 1);