mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Plt Plot : Guard agains pop_back on empty vector
This commit is contained in:
parent
bc026da2f6
commit
efb5648721
@ -371,7 +371,7 @@ public:
|
||||
auto it = globCellIdxToIdxInRftFile.find(globCellIdx);
|
||||
if (it == globCellIdxToIdxInRftFile.end())
|
||||
{
|
||||
if (wpExIdx == (intersections.size() - 1))
|
||||
if (!m_pipeBranchWellResultPoints.empty() && wpExIdx == (intersections.size() - 1))
|
||||
{
|
||||
m_pipeBranchWellResultPoints.pop_back();
|
||||
}
|
||||
@ -463,7 +463,7 @@ public:
|
||||
auto it = globCellIdxToIdxInSimWellBranch.find(globCellIdx);
|
||||
if (it == globCellIdxToIdxInSimWellBranch.end())
|
||||
{
|
||||
if (wpExIdx == (intersections.size() - 1))
|
||||
if (!m_pipeBranchWellResultPoints.empty() && wpExIdx == (intersections.size() - 1))
|
||||
{
|
||||
m_pipeBranchWellResultPoints.pop_back();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user