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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user