Guard against pop_back on empty vector

This commit is contained in:
Magne Sjaastad committed 2017-12-05 10:10:04 +01:00
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();
}
}
}