diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 11:07:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 12:58:47 +0000 |
commit | 7004dae6b46aa74a3437c83aabff387827cb6a26 (patch) | |
tree | 506b5e52454bff3bd6ba10e52c88d6e4edf0b630 /sc | |
parent | af3b804e19c7e29ec3f5ffb5e90f575934cff0d7 (diff) |
coverity#1187686 Dereference null return value
Change-Id: I68884a762527a0a430771d26a3c84c8482751bcb
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/ucalc_sharedformula.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc_sharedformula.cxx b/sc/qa/unit/ucalc_sharedformula.cxx index 91885ea85f4e..d8974aefda85 100644 --- a/sc/qa/unit/ucalc_sharedformula.cxx +++ b/sc/qa/unit/ucalc_sharedformula.cxx @@ -164,6 +164,7 @@ void Test::testSharedFormulas() CPPUNIT_ASSERT_EQUAL(aCell.mpString->getString(), m_pDoc->GetString(aPos)); aPos.SetRow(16); pFC = m_pDoc->GetFormulaCell(aPos); + CPPUNIT_ASSERT(pFC); // B17:B18 should be shared. CPPUNIT_ASSERT_EQUAL(static_cast<SCROW>(16), pFC->GetSharedTopRow()); CPPUNIT_ASSERT_EQUAL(static_cast<SCROW>(2), pFC->GetSharedLength()); |