From ea85dca234053ea3fee6b33ed988d67068126a60 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Wed, 2 Oct 2024 09:37:33 +0200 Subject: [PATCH] #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 --- .../ReservoirDataModel/RigMswCenterLineCalculator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationLibCode/ReservoirDataModel/RigMswCenterLineCalculator.cpp b/ApplicationLibCode/ReservoirDataModel/RigMswCenterLineCalculator.cpp index b5bc81933c..e1f2dde911 100644 --- a/ApplicationLibCode/ReservoirDataModel/RigMswCenterLineCalculator.cpp +++ b/ApplicationLibCode/ReservoirDataModel/RigMswCenterLineCalculator.cpp @@ -74,7 +74,7 @@ std::vector { const RigWellResultFrame* wellFramePtr = nullptr; - if ( timeStepIndex < 0 ) + if ( timeStepIndex < 0 || !wellResults->hasWellResult( timeStepIndex ) ) { wellFramePtr = wellResults->staticWellResultFrame(); }