Crash protection

This commit is contained in:
Jon Jenssen authored and jonjenssen committed 2021-10-09 14:42:09 +02:00
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] )