Kaydet (Commit) ab110f1c authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1187681 Dereference null return value

Change-Id: I8043f4c2abe6b63162eb79eb64809223a9846b21
üst 7f44e3a4
......@@ -434,7 +434,10 @@ void ScAccessibleCell::FillPrecedents(utl::AccessibleRelationSetHelper* pRelatio
{
if (mpDoc && mpDoc->GetCellType(maCellAddress) == CELLTYPE_FORMULA)
{
ScDetectiveRefIter aIter(mpDoc->GetFormulaCell(maCellAddress));
ScFormulaCell* pCell = mpDoc->GetFormulaCell(maCellAddress);
if (!pCell)
return;
ScDetectiveRefIter aIter(pCell);
ScRange aRef;
while ( aIter.GetNextRef( aRef ) )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment