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(); }