sc/source/core/data/table3.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 8e1768551643420addbfb4349e838579380bfa01
Author: Caolán McNamara <[email protected]>
AuthorDate: Fri Nov 26 09:13:40 2021 +0000
Commit: Caolán McNamara <[email protected]>
CommitDate: Fri Nov 26 11:55:33 2021 +0100
cid#1494444 silence Dereference null return value
Change-Id: I7c6c60489a58378238ff63ff9c6b45f3a7aa4bf7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125866
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <[email protected]>
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 4da4f23c59b4..2eae384f397a 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -3210,6 +3210,7 @@ bool ScTable::ValidQuery(
else if( pBlockPos )
{ // hinted mdds access
ScColumn* column = FetchColumn(nCol);
+ assert(column);
aCell = column->GetCellValue(*pBlockPos->getBlockPosition( nCol ),
nRow);
}
else