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

coverity#1187682 Dereference null return value

Change-Id: I52740129dc7c6c8d6f47850cf32702ead4643e63
üst c5920fe2
......@@ -1066,7 +1066,7 @@ void ScXMLTableRowCellContext::PutTextCell( const ScAddress& rCurrentPos,
if(!aCellString.isEmpty())
{
if (bDoIncrement && !IsPossibleErrorString())
if (bDoIncrement && !IsPossibleErrorString() && pFCell)
{
ScDocument* pDoc = rXMLImport.GetDocument();
pFCell->SetHybridString(pDoc->GetSharedStringPool().intern(aCellString));
......@@ -1075,7 +1075,7 @@ void ScXMLTableRowCellContext::PutTextCell( const ScAddress& rCurrentPos,
else
{
ScAddress aTopLeftMatrixCell;
if(pFCell->GetMatrixOrigin(aTopLeftMatrixCell))
if (pFCell && pFCell->GetMatrixOrigin(aTopLeftMatrixCell))
{
ScFormulaCell* pMatrixCell = rXMLImport.GetDocument()->GetFormulaCell(aTopLeftMatrixCell);
if (pMatrixCell)
......
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