diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-13 21:02:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-15 10:21:25 +0100 |
commit | 6903b8480956e50a155b42fa42807fb32452bed4 (patch) | |
tree | 9311912def47a15e15bc8c407f832cf34d8b2c49 /sc | |
parent | 5c3eaed8acdd9d9677833547b2ab206574ee45b8 (diff) |
coverity#1213244 Dereference null return value
Change-Id: I729baf2bec5849a4323550aacb9b789db78e72b3
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index 78c847e69aa1..ec07bde19cc2 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -3754,10 +3754,11 @@ bool ScFormulaCell::InterpretInvariantFormulaGroup() aTmpPos.SetRow(mxGroup->mpTopCell->aPos.Row() + i); ScFormulaCell* pCell = pDocument->GetFormulaCell(aTmpPos); assert( pCell != NULL ); + if (!pCell) + continue; // FIXME: this set of horrors is unclear to me ... certainly // the above GetCell is profoundly nasty & slow ... - // Ensure the cell truly has a result: pCell->aResult = aResult; pCell->ResetDirty(); |