diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 10:38:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 12:58:43 +0000 |
commit | 6cccfffa084d9e0226566cf09aac532c3e4f517d (patch) | |
tree | a7cfb1b27e1f50d863f6eb91253c9328fb2e305f /sc | |
parent | e1a4e44d08cf13ad7dca3d267f54f3bc38476e08 (diff) |
coverity#1187667 Dereference null return value
Change-Id: Ibc7f840f984ce12e9dae998085f42168d7819dc8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/chartarr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/chartarr.cxx b/sc/source/core/tool/chartarr.cxx index 627068a5f731..40a6d91520a0 100644 --- a/sc/source/core/tool/chartarr.cxx +++ b/sc/source/core/tool/chartarr.cxx @@ -130,7 +130,7 @@ double getCellValue( ScDocument& rDoc, const ScAddress& rPos, double fDefault, b case CELLTYPE_FORMULA: { ScFormulaCell* pFCell = rDoc.GetFormulaCell(rPos); - if (!pFCell->GetErrCode() && pFCell->IsValue()) + if (pFCell && !pFCell->GetErrCode() && pFCell->IsValue()) fRet = pFCell->GetValue(); } break; |