summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-27 11:00:29 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-27 12:58:46 +0000
commit38c143c1d71ff82155ee38070feffd72b8ad6748 (patch)
tree52dddb7f7e96004acb99d14df783e770957f5794 /sc
parentab110f1c5c8820cbac4df545d9c782f799c3d790 (diff)
coverity#1187682 Dereference null return value
Change-Id: I3395730a791417ddddfdcec9bca2ee7b9a3d4ec6
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/xmlcelli.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 17098bd6a552..cb284d5b8222 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -1073,7 +1073,8 @@ void ScXMLTableRowCellContext::PutTextCell( const ScAddress& rCurrentPos,
if(pFCell->GetMatrixOrigin(aTopLeftMatrixCell))
{
ScFormulaCell* pMatrixCell = rXMLImport.GetDocument()->GetFormulaCell(aTopLeftMatrixCell);
- pMatrixCell->SetDirty();
+ if (pMatrixCell)
+ pMatrixCell->SetDirty();
}
else
SAL_WARN("sc", "matrix cell without matrix");