diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 10:40:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 12:58:44 +0000 |
commit | 467a4d5f41af3de5c992ea7618d51a881c4c020a (patch) | |
tree | 9583591bf0187a734bb546dfaec6fbf7b0172e07 /sc | |
parent | 37a543e8d5f11b86f27e3556d2f420815352af5d (diff) |
coverity#1187669 Dereference null return value
Change-Id: Ic77fc2d436bf70ee166e4732f19f2067907f7c53
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/conditio.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index d70b43f9d96d..aed6fdbba116 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -950,7 +950,7 @@ bool ScConditionEntry::IsError( const ScAddress& rPos ) const case CELLTYPE_FORMULA: { ScFormulaCell* pFormulaCell = const_cast<ScFormulaCell*>(mpDoc->GetFormulaCell(rPos)); - if(pFormulaCell->GetErrCode()) + if (pFormulaCell && pFormulaCell->GetErrCode()) return true; } case CELLTYPE_STRING: |