From 718f6f96872a8a4e57231e27a1c86d9b5109d63e Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 29 Sep 2015 15:29:02 +0200 Subject: [PATCH] (#555) Fixed issue for cases not part of a grid case group --- ApplicationCode/Commands/RicCloseCaseFeature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/RicCloseCaseFeature.cpp b/ApplicationCode/Commands/RicCloseCaseFeature.cpp index adc6d5ad0f..e7d74e6d77 100644 --- a/ApplicationCode/Commands/RicCloseCaseFeature.cpp +++ b/ApplicationCode/Commands/RicCloseCaseFeature.cpp @@ -216,7 +216,7 @@ bool RicCloseCaseFeature::userConfirmedGridCaseGroupChange(const std::vectorfirstAnchestorOrThisOfType(gridCaseGroup); - if (hasAnyStatisticsResults(gridCaseGroup)) + if (gridCaseGroup && hasAnyStatisticsResults(gridCaseGroup)) { gridCaseGroups.push_back(gridCaseGroup); }