mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2277 external files. Improve robustness when importing
This commit is contained in:
@@ -458,13 +458,15 @@ QList<caf::PdmOptionItemInfo> RimEclipseResultDefinition::calculateValueOptions(
|
||||
bool enableSouring = false;
|
||||
|
||||
#ifdef ENABLE_SOURING
|
||||
RigCaseCellResultsData* cellResultsData = m_eclipseCase->results(this->porosityModel());
|
||||
|
||||
if (cellResultsData->hasFlowDiagUsableFluxes())
|
||||
if (m_eclipseCase.notNull())
|
||||
{
|
||||
enableSouring = true;
|
||||
}
|
||||
RigCaseCellResultsData* cellResultsData = m_eclipseCase->results(this->porosityModel());
|
||||
|
||||
if (cellResultsData->hasFlowDiagUsableFluxes())
|
||||
{
|
||||
enableSouring = true;
|
||||
}
|
||||
}
|
||||
#endif /* ENABLE_SOURING */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user