#11735 Use static well path geometry if no simulation well data is available

Crash when creating intersection on a simulation well no well data is present at time step
This commit is contained in:
Magne Sjaastad 2024-10-02 09:37:33 +02:00
parent eca17ab92e
commit aabe7b064d

View File

@ -74,7 +74,7 @@ std::vector<SimulationWellCellBranch>
{
const RigWellResultFrame* wellFramePtr = nullptr;
if ( timeStepIndex < 0 )
if ( timeStepIndex < 0 || !wellResults->hasWellResult( timeStepIndex ) )
{
wellFramePtr = wellResults->staticWellResultFrame();
}