mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 01:42:13 -05:00
Crash protection
This commit is contained in:
1 parent
7cf56e1e87
commit
a2acadf3f4
2 files changed
+18
-2
No files matched your search
@@ -1344,6 +1344,11 @@ std::vector<RimContourMapProjection::CellIndexAndResult>
|
||||
std::vector<std::vector<size_t>> kLayerCellIndexVector;
|
||||
kLayerCellIndexVector.resize( kLayers() );
|
||||
|
||||
if ( kLayerCellIndexVector.empty() )
|
||||
{
|
||||
return matchingVisibleCellsAndWeight;
|
||||
}
|
||||
|
||||
for ( size_t globalCellIdx : allCellIndices )
|
||||
{
|
||||
if ( ( *m_cellGridIdxVisibility )[globalCellIdx] )
|
||||
|
||||
Reference in new issue
Block a user