diff --git a/ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp b/ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp index ca4cb02940..2b43757325 100644 --- a/ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp +++ b/ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp @@ -622,6 +622,8 @@ void RifReaderEclipseOutput::transferDynamicNNCData(const ecl_grid_type* mainEcl { CVF_ASSERT(mainEclGrid && mainGrid); + if (m_dynamicResultsAccess.isNull()) return; + size_t timeStepCount = m_dynamicResultsAccess->timeStepCount(); std::vector< std::vector >& waterFluxData = mainGrid->nncData()->makeDynamicConnectionScalarResult(RigNNCData::propertyNameFluxWat(), timeStepCount);