diff --git a/ApplicationLibCode/ReservoirDataModel/RigContourMapCalculator.cpp b/ApplicationLibCode/ReservoirDataModel/RigContourMapCalculator.cpp index 29c13ab512..3d435cc8b1 100644 --- a/ApplicationLibCode/ReservoirDataModel/RigContourMapCalculator.cpp +++ b/ApplicationLibCode/ReservoirDataModel/RigContourMapCalculator.cpp @@ -360,7 +360,7 @@ std::vector auto cellGridIdxVisibility = contourMapProjection.getCellVisibility(); for ( size_t globalCellIdx : allCellIndices ) { - if ( ( *cellGridIdxVisibility )[globalCellIdx] ) + if ( cellGridIdxVisibility.isNull() || ( *cellGridIdxVisibility )[globalCellIdx] ) { kLayerIndexMap[contourMapProjection.kLayer( globalCellIdx )].push_back( globalCellIdx ); }