mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Guard against pop_back on empty vector
This commit is contained in:
1 parent
88559c8252
commit
149ebbf7b9
1 file changed
+5
-1
@@ -917,7 +917,11 @@ void RiuSummaryCurveDefSelection::buildAddressListForCategoryRecursively(RifEcli
|
||||
auto address = RifEclipseSummaryAddress(category, selectedIdentifiers);
|
||||
addressSet.insert(address);
|
||||
}
|
||||
identifierPath.pop_back();
|
||||
|
||||
if (!identifierPath.empty())
|
||||
{
|
||||
identifierPath.pop_back();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user