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

coverity#1187669 Dereference null return value

Change-Id: Ic77fc2d436bf70ee166e4732f19f2067907f7c53
üst 37a543e8
...@@ -950,7 +950,7 @@ bool ScConditionEntry::IsError( const ScAddress& rPos ) const ...@@ -950,7 +950,7 @@ bool ScConditionEntry::IsError( const ScAddress& rPos ) const
case CELLTYPE_FORMULA: case CELLTYPE_FORMULA:
{ {
ScFormulaCell* pFormulaCell = const_cast<ScFormulaCell*>(mpDoc->GetFormulaCell(rPos)); ScFormulaCell* pFormulaCell = const_cast<ScFormulaCell*>(mpDoc->GetFormulaCell(rPos));
if(pFormulaCell->GetErrCode()) if (pFormulaCell && pFormulaCell->GetErrCode())
return true; return true;
} }
case CELLTYPE_STRING: case CELLTYPE_STRING:
......
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