Skip to content

Commit

Permalink
Guard null pointer access
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Sep 27, 2024
1 parent 67adab8 commit 360a635
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2363,6 +2363,8 @@ void RimEclipseView::calculateCurrentTotalCellVisibility( cvf::UByteArray* total
//--------------------------------------------------------------------------------------------------
void RimEclipseView::calculateCellVisibility( cvf::UByteArray* visibility, std::vector<RivCellSetEnum> geomTypes, int timeStep )
{
if ( !mainGrid() ) return;

size_t cellCount = mainGrid()->globalCellArray().size();

visibility->resize( cellCount );
Expand Down

0 comments on commit 360a635

Please sign in to comment.