Guard against pop_back on empty vector

This commit is contained in:
Magne Sjaastad
2017-12-05 10:10:04 +01:00
parent 88559c8252
commit 149ebbf7b9

View File

@@ -917,8 +917,12 @@ void RiuSummaryCurveDefSelection::buildAddressListForCategoryRecursively(RifEcli
auto address = RifEclipseSummaryAddress(category, selectedIdentifiers);
addressSet.insert(address);
}
if (!identifierPath.empty())
{
identifierPath.pop_back();
}
}
}
//--------------------------------------------------------------------------------------------------