mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
#13884 NncFluxData: Guard null grid/summaryView to fix crash during dynamic NNC transfer
ecl_file_get_restart_view can return null when a timestep has no restart view, and the result was passed unchecked into ERT functions. Also added a null guard for grid and summaryView at the entry of transferNncFluxData to prevent a crash in ecl_nnc_geometry_alloc on null grid.
This commit is contained in:
1 parent
639024eca4
commit
01e0046a78
2 files changed
+3
No files matched your search
@@ -588,6 +588,8 @@ void RifEclipseOutputFileTools::transferNncFluxData( const ecl_grid_type* g
|
||||
std::vector<double>* oilFlux,
|
||||
std::vector<double>* gasFlux )
|
||||
{
|
||||
if ( !grid || !summaryView ) return;
|
||||
|
||||
ecl_nnc_geometry_type* nnc_geo = ecl_nnc_geometry_alloc( grid );
|
||||
if ( nnc_geo )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user