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

coverity#1187682 Dereference null return value

Change-Id: I3395730a791417ddddfdcec9bca2ee7b9a3d4ec6
üst ab110f1c
...@@ -1073,7 +1073,8 @@ void ScXMLTableRowCellContext::PutTextCell( const ScAddress& rCurrentPos, ...@@ -1073,7 +1073,8 @@ void ScXMLTableRowCellContext::PutTextCell( const ScAddress& rCurrentPos,
if(pFCell->GetMatrixOrigin(aTopLeftMatrixCell)) if(pFCell->GetMatrixOrigin(aTopLeftMatrixCell))
{ {
ScFormulaCell* pMatrixCell = rXMLImport.GetDocument()->GetFormulaCell(aTopLeftMatrixCell); ScFormulaCell* pMatrixCell = rXMLImport.GetDocument()->GetFormulaCell(aTopLeftMatrixCell);
pMatrixCell->SetDirty(); if (pMatrixCell)
pMatrixCell->SetDirty();
} }
else else
SAL_WARN("sc", "matrix cell without matrix"); SAL_WARN("sc", "matrix cell without matrix");
......
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