Minor adjustment avoids exception when used with FIELD group.

This commit is contained in:
Atgeirr Flø Rasmussen 2023-04-26 11:51:57 +02:00
parent b90cf68d46
commit 8ac8b207ca

View File

@ -194,7 +194,7 @@ namespace WellGroupHelpers
double& factor)
{
factor *= group.getGroupEfficiencyFactor();
if (group.parent() != "FIELD")
if (group.parent() != "FIELD" && !group.parent().empty())
accumulateGroupEfficiencyFactor(
schedule.getGroup(group.parent(), reportStepIdx), schedule, reportStepIdx, factor);
}