mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard null pointer access
This commit is contained in:
@@ -652,7 +652,7 @@ QList<caf::PdmOptionItemInfo>
|
||||
{
|
||||
RigCaseCellResultsData* cellResultsData = m_eclipseCase->results( this->porosityModel() );
|
||||
|
||||
if ( cellResultsData->hasFlowDiagUsableFluxes() )
|
||||
if ( cellResultsData && cellResultsData->hasFlowDiagUsableFluxes() )
|
||||
{
|
||||
enableSouring = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user