coverity#705829 Dereference before null check
Change-Id: Ic624b6bab3215148ff0b9a73fd24577623b398f9
This commit is contained in:
@@ -410,15 +410,23 @@ void ScXMLChangeTrackingImportHelper::AddGenerated(ScMyCellInfo* pCellInfo, cons
|
||||
|
||||
void ScXMLChangeTrackingImportHelper::EndChangeAction()
|
||||
{
|
||||
if (!pCurrentAction)
|
||||
{
|
||||
OSL_FAIL("no current action");
|
||||
return;
|
||||
}
|
||||
|
||||
if ((pCurrentAction->nActionType == SC_CAT_DELETE_COLS) ||
|
||||
(pCurrentAction->nActionType == SC_CAT_DELETE_ROWS))
|
||||
GetMultiSpannedRange();
|
||||
if (pCurrentAction && pCurrentAction->nActionNumber > 0)
|
||||
|
||||
if (pCurrentAction->nActionNumber > 0)
|
||||
aActions.push_back(pCurrentAction);
|
||||
else
|
||||
{
|
||||
OSL_FAIL("no current action");
|
||||
}
|
||||
|
||||
pCurrentAction = NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user