Kaydet (Commit) 7004dae6 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1187686 Dereference null return value

Change-Id: I68884a762527a0a430771d26a3c84c8482751bcb
üst af3b804e
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment