summaryrefslogtreecommitdiff
path: root/sc/source/ui/Accessibility
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-27 10:59:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-27 12:58:46 +0000
commitab110f1c5c8820cbac4df545d9c782f799c3d790 (patch)
treef283ac66b28f9f4c424407512da10f0ff7e9bf99 /sc/source/ui/Accessibility
parent7f44e3a4eab74652cd72db9da5b8d316ac127eb1 (diff)
coverity#1187681 Dereference null return value
Change-Id: I8043f4c2abe6b63162eb79eb64809223a9846b21
Diffstat (limited to 'sc/source/ui/Accessibility')
-rw-r--r--sc/source/ui/Accessibility/AccessibleCell.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleCell.cxx b/sc/source/ui/Accessibility/AccessibleCell.cxx
index 5b3af7b1d353..540960ee05dc 100644
--- a/sc/source/ui/Accessibility/AccessibleCell.cxx
+++ b/sc/source/ui/Accessibility/AccessibleCell.cxx
@@ -434,7 +434,10 @@ void ScAccessibleCell::FillPrecedents(utl::AccessibleRelationSetHelper* pRelatio
{
if (mpDoc && mpDoc->GetCellType(maCellAddress) == CELLTYPE_FORMULA)
{
- ScDetectiveRefIter aIter(mpDoc->GetFormulaCell(maCellAddress));
+ ScFormulaCell* pCell = mpDoc->GetFormulaCell(maCellAddress);
+ if (!pCell)
+ return;
+ ScDetectiveRefIter aIter(pCell);
ScRange aRef;
while ( aIter.GetNextRef( aRef ) )
{