summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-27 11:01:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-27 12:58:46 +0000
commit3a22310bd220e29489ccea9cbec764170528d2d4 (patch)
treeb58730ff30d480dcf6d11bbd78f8934df153f08b
parent38c143c1d71ff82155ee38070feffd72b8ad6748 (diff)
coverity#1187683 Dereference null return value
Change-Id: I57f459ed5ca3634109e986988069bc485bdcb7cd
-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 cb284d5b8222..ffb2c92c02c4 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -1146,7 +1146,8 @@ void ScXMLTableRowCellContext::PutValueCell( const ScAddress& rCurrentPos )
{
ScFormulaCell* pFCell = rXMLImport.GetDocument()->GetFormulaCell(rCurrentPos);
SetFormulaCell(pFCell);
- pFCell->SetNeedNumberFormat( true );
+ if (pFCell)
+ pFCell->SetNeedNumberFormat( true );
}
}
else //regular value cell