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

coverity#1187667 Dereference null return value

Change-Id: Ibc7f840f984ce12e9dae998085f42168d7819dc8
üst e1a4e44d
...@@ -130,7 +130,7 @@ double getCellValue( ScDocument& rDoc, const ScAddress& rPos, double fDefault, b ...@@ -130,7 +130,7 @@ double getCellValue( ScDocument& rDoc, const ScAddress& rPos, double fDefault, b
case CELLTYPE_FORMULA: case CELLTYPE_FORMULA:
{ {
ScFormulaCell* pFCell = rDoc.GetFormulaCell(rPos); ScFormulaCell* pFCell = rDoc.GetFormulaCell(rPos);
if (!pFCell->GetErrCode() && pFCell->IsValue()) if (pFCell && !pFCell->GetErrCode() && pFCell->IsValue())
fRet = pFCell->GetValue(); fRet = pFCell->GetValue();
} }
break; break;
......
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