Kaydet (Commit) 9ac4a342 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1352321 Dereference null return value

and

coverity#1352322 Dereference null return value

Change-Id: I0482ed95e8fbce5d7f9a827588a66ebd0f9d69c7
üst 5969fc79
......@@ -789,7 +789,7 @@ ScFormulaGroupIterator::ScFormulaGroupIterator( ScDocument* pDoc ) :
mnIndex(0)
{
ScTable *pTab = mpDoc->FetchTable(mnTab);
ScColumn *pCol = pTab->FetchColumn(mnCol);
ScColumn *pCol = pTab ? pTab->FetchColumn(mnCol) : nullptr;
if (pCol)
{
mbNullCol = false;
......@@ -820,7 +820,7 @@ sc::FormulaGroupEntry* ScFormulaGroupIterator::next()
return nullptr;
}
ScTable *pTab = mpDoc->FetchTable(mnTab);
ScColumn *pCol = pTab->FetchColumn(mnCol);
ScColumn *pCol = pTab ? pTab->FetchColumn(mnCol) : nullptr;
if (pCol)
{
mbNullCol = false;
......
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