(#555) Fixed issue for cases not part of a grid case group

This commit is contained in:
Magne Sjaastad 2015-09-29 15:29:02 +02:00
parent 5619e14cbe
commit 718f6f9687

View File

@ -216,7 +216,7 @@ bool RicCloseCaseFeature::userConfirmedGridCaseGroupChange(const std::vector<Rim
RimIdenticalGridCaseGroup* gridCaseGroup = NULL;
casesToBeDeleted[i]->firstAnchestorOrThisOfType(gridCaseGroup);
if (hasAnyStatisticsResults(gridCaseGroup))
if (gridCaseGroup && hasAnyStatisticsResults(gridCaseGroup))
{
gridCaseGroups.push_back(gridCaseGroup);
}