From 6cccfffa084d9e0226566cf09aac532c3e4f517d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 27 Feb 2014 10:38:26 +0000 Subject: coverity#1187667 Dereference null return value Change-Id: Ibc7f840f984ce12e9dae998085f42168d7819dc8 --- sc/source/core/tool/chartarr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') 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; -- cgit v1.2.3