summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-27 10:50:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-27 12:58:45 +0000
commit1cbe667d3e205f02d39d73267f2d4fbdf94b639f (patch)
treeabeba59ff28e862e593a1f65915b5997f89dacf4 /sc
parent7848b15c23d41e58b9b3eeb0eb26a6219d38857e (diff)
coverity#1187678 Dereference null return value
Change-Id: I01d2e758581c3893bbbd823029668acc257f4534
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 510a0acfb8a1..2a3873b56a16 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -2633,6 +2633,8 @@ void ScChart2DataSequence::BuildDataCache()
case CELLTYPE_FORMULA:
{
ScFormulaCell* pFCell = m_pDocument->GetFormulaCell(aAdr);
+ if (!pFCell)
+ break;
sal_uInt16 nErr = pFCell->GetErrCode();
if (nErr)
break;