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

coverity#1187679 Dereference null return value

Change-Id: I58c0974d02f1f9e5617476182ed9ce5c50debd70
üst 1cbe667d
......@@ -6548,6 +6548,8 @@ void SAL_CALL ScCellObj::setFormulaResult( double nValue ) throw(uno::RuntimeExc
if ( pDocSh && pDocSh->GetDocument()->GetCellType( aCellPos ) == CELLTYPE_FORMULA )
{
ScFormulaCell* pCell = pDocSh->GetDocument()->GetFormulaCell(aCellPos);
if (!pCell)
return;
pCell->SetHybridDouble( nValue );
pCell->ResetDirty();
pCell->SetChanged(false);
......
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