#7655 Well Allocation Plot: Add more guarding for empty vectors

wip
This commit is contained in:
Magne Sjaastad
2021-05-25 15:51:02 +02:00
parent a4a6c30370
commit b8f7490311
2 changed files with 3 additions and 0 deletions

View File

@@ -310,6 +310,7 @@ void RimWellAllocationPlot::updateFromWell()
? wfCalculator->trueVerticalDepth( brIdx )
: std::vector<double>();
if ( !depthValues.empty() )
{
std::vector<QString> tracerNames = wfCalculator->tracerNames();
for ( const QString& tracerName : tracerNames )