diff --git a/ApplicationCode/ReservoirDataModel/RigStimPlanFractureDefinition.cpp b/ApplicationCode/ReservoirDataModel/RigStimPlanFractureDefinition.cpp index 962fb0d378..877cd07133 100644 --- a/ApplicationCode/ReservoirDataModel/RigStimPlanFractureDefinition.cpp +++ b/ApplicationCode/ReservoirDataModel/RigStimPlanFractureDefinition.cpp @@ -141,7 +141,10 @@ std::vector> RigStimPlanFractureDefinition::getDataAtTimeInd if (resIndex != cvf::UNDEFINED_SIZE_T) { - return stimPlanData[resIndex].parameterValues[timeStepIndex]; + if (timeStepIndex < stimPlanData[resIndex].parameterValues.size()) + { + return stimPlanData[resIndex].parameterValues[timeStepIndex]; + } } qDebug() << "ERROR: Requested parameter does not exists in stimPlan data";