cid#1695399: Dereference null return value

Change-Id: I8ffb25ca9655fe039a3c1db8241ea585492641e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207336
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
This commit is contained in:
Xisco Fauli
2026-06-26 16:24:32 +02:00
parent ba339ebb2d
commit c8040293d5
+2 -1
View File
@@ -2644,7 +2644,8 @@ XclExpCellTable::XclExpCellTable( const XclExpRoot& rRoot ) :
// We have to force everything to calculate, or we might end up triggering recalc while
// we walk the data, and then we get stale ScPatternAttr pointers.
rDoc.FetchTable(nScTab)->CalcAll();
if (ScTable* pTable = rDoc.FetchTable(nScTab))
pTable->CalcAll();
// range for cell iterator
SCCOL nLastIterScCol = nMaxScCol;